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 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 ArticleHide or turn off variable's label in statplot command (supaxis edits?)
Dear Stata users, I use -statplot- (from SSC) wrote by eric_a_booth and Nick Cox. I want to modify variable's label, however, I can not find how to do that. Put it concretely, I want to (1) throughly...
View ArticleNew package rtablabs on SSC
Thanks as always to Kit Baum, a new package rtablabs is now available for download from SSC. In Stata, use the ssc command to do this. The rtablabs package is described as below on my website. It is...
View ArticleIs there any command to list all varlists that have missing values?
Dear Stata users, A quick question: Is there any command to list all varlists that have missing values? Maybe such command should also return `r(varlist)'. In the example data below, I want a command...
View ArticleHow to reduce the number of GMM instruments in xtendothresdpd with a small...
Hi everyone, I need help reducing the number of instruments when using Kremer’s (2013) threshold effects method (implemented via the `xtendothresdpd` command). While I get good results, the number of...
View Articleround_exact updated to version 4.0.6 on SSC
Dear Statalist users, -round_exact- has been updated on SSC to version 4.0.6. New features include: * Direct conversion and exact rounding of string variables using either -generate()- or -replace-. *...
View ArticleNew -nestpreserve- Module for Nested Dataset-State Management
Thanks as always to Kit Baum, the new -nestpreserve- module is now available on SSC. -nestpreserve- provides nested dataset-state management for Stata. It implements a disk-backed, last-in-first-out...
View Article