Quantcast
Channel: Statalist
Browsing index pages (74043 articles)
↧

hmerge: a prototype hash-based -merge- (m:1, 1:1) that skips the master sort,...

It occurred to me today that once upon a time I remember gtools having a long to-do list of speedups the author wanted to implement but never did, and that there were probably plenty of speedups we...

View Article


Reducing data set

Is there a way to exclude cases from a dataset if they do not have sufficient observations? I wrote: keep house if _n(VCF0900c >= 45) but it didn't work Is there a solution to this problem? Thanks...

View Article


New Stata command: xtie2 – Interactive panel data estimation with automatic...

Dear Statalist members, I would like to introduce xtie2, a new user-written Stata command for fixed-effects panel estimation with automatic pairwise interactions. The command automatically generates...

View Article

relative survival poisson model

HI Statalist, I am trying to model rs using a poisson model as per Royston and Lambert's book Flexible Paremetric Survival Analysis using Stata (2011). I have found the mean/variance is not equal. Does...

View Article

Repeated cross-sectional LCA with multi-level data

Hi there, I want to conduct a latent class analysis of repeated cross-sectional data. Participants in the dataset were sampled and recruited at the school level; therefore, I would like to include a...

View Article


PSA: Replacing string values does not entirely remove the old values from the...

I want to alert people who de-identify, anonymize, or share data to a behavior of Stata's .dta writer. I reported it to StataCorp Technical Support on 7 September. Details of their reply are at the...

View Article

Updated egfr package on SSC

Thanks as always to Kit Baum, a new version of the egfr program is available on SSC. This program calculates eGFR from serum creatinine (and/or cystatin C) and is useful for people analysing datasets...

View Article

New package on SSC: bayesinits (chain-specific initial values for bayesmh)

Thanks as always to Kit Baum, a new package -bayesinits- is now available from the SSC archive. To install: . ssc install bayesinits . help bayesinits -bayesinits- (version 1.4.1) generates...

View Article


Stata module to download BCRP (Central Reserve Bank of Peru) data: dbcrp

Dear Statalist community, I would like to announce the release of dbcrp, a simple Stata package I built to download macroeconomic time series directly from the API of the Central Reserve Bank of Peru...

View Article


Dark Mode for Mac

Array My apologies for the image quality. I have redownloaded Stata after about a year (on a mac). I never had issues with darkmode previously, but now it appears that it is only working for the...

View Article

how to plot Mean and 95% CI in longitudinal models

Hello everyone, I'm working on a longitudinal model, I'm using the Long format of the dataset. I generated the Mean of my continuous Variable with egen; then I used collapse (mean) Var, by(Group Time)...

View Article

reghdfe warning about singleton observations in clustered bootstrap

Thank you for your attention .I am estimating a firm-year panel model with firm and year fixed effects and standard errors clustered at the firm level. I also use a clustered bootstrap with 500...

View Article

Concatenating string observations

Assume the following sample dataset: var1 var2 var3 A 1 A B 0 B C 1 BC D 1 D E 0 E F 0 EF G 1 EFG I would like to get the concatenation seen in var3. The rule is simple: if var2 of the previous...

View Article


consul's generalised poisson

Hi all, I am interested if anyone has had experience using consul's generalised poisson. I have two questions: 1) can you use it for non-count data (like ordinary poisson) assuming the mean if...

View Article

macOS 27 Compatibility with Stata 18?

Is anyone running the newest version of macOS and using Stata 18? I'm wondering if it's safe for me to update macOS. I remember that there were several display bugs caused by Tahoe (macOS 26) that...

View Article


New Book: MIDAS- Meta-analytical Integration of Diagnostic Accuracy Studies...

Dear Statalisters, I am pleased to announce a new book documenting the MIDAS suite for bivariate diagnostic test accuracy (DTA) meta-analysis in Stata: MIDAS: Meta-Analytical Integration of Diagnostic...

View Article

joinby issue

I have a dataset with variables listing amember of Congress, his/her state and Congressional district number. I want to combine the state and Congressional district into one variable. I typed: state...

View Article


DiD with compositional change STATA implementation and application questions

Is there any work being done to implement the composition change robust DiD method for cross-sectional data proposed in Sant'Anna and Xu (2026) in STATA? I know there is an alpha release R-package. As...

View Article

Are any of the Stata commands for a staggered-treatment...

I do a lot of my work with a large dataset that follows several million individuals on a monthly basis for as much as 20 years. Often I want to estimate the impact of some kind of shock or event on the...

View Article

creating numeric variable

I have a dataset with surey respondents' congressional districts and their traits. I want to create a set that matches the traits with thedistrics. But the districts are string and do notmatch the...

View Article
Browsing index pages (74043 articles)


Latest Images