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 ArticlePSA: 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 ArticleUpdated 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 ArticleNew 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 ArticleStata 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 ArticleDark 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 Articlehow 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 Articlereghdfe 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 ArticleConcatenating 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 Articleconsul'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 ArticlemacOS 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 ArticleNew 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 Articlejoinby 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 ArticleDiD 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 ArticleAre 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 Articlecreating 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 ArticleWhen to Winsorize the Panel Data Variables of Non-Financial Firms
Dear Statalist Community, I have panel data on more than 200 variables, all from balance sheets, income statements, CFS, CSR reporting, board member counts, etc. So, my question is: what is the best...
View ArticleZINB inflate part: brand dummy diverges/fails to converge in some categories...
I am running separate zero-inflated negative binomial models on online review helpfulness data (helpful_vote as DV) for 4 product categories. The specification is: zinb helpful_vote two_sided...
View ArticleDifficulty testing measurement invariance across gender and using CFA factor...
Hello everyone, I am working on a PhD-level term paper using the Ghana Afrobarometer Round 10 dataset (N = 2,400). I am using Stata 16 and SEM/CFA to examine a multidimensional measure of empowerment....
View ArticleUpdate to geoplot available from SSC
A new version of geoplot is available from SSC. Type ssc install geoplot, replace to install the new version. For details on changes see github.com/benjann/geoplot/. There is a new geograme pcpath...
View Article