Dear all,
I'm trying to run the csdid command in Stata to estimate a difference-in-differences model with staggered treatment adoption. However, when I run the command: csdid cons_per_capita, ivar(country_id) time(year) gvar(group_year)
I get empty output tables — no estimates, coefficients, or standard errors appear.
Here’s a bit more about my setup:
Things I've tried:
Thanks in advance!
I'm trying to run the csdid command in Stata to estimate a difference-in-differences model with staggered treatment adoption. However, when I run the command: csdid cons_per_capita, ivar(country_id) time(year) gvar(group_year)
I get empty output tables — no estimates, coefficients, or standard errors appear.
Here’s a bit more about my setup:
- cons_per_capita: my outcome variable (float).
- country_id: unique identifier for each country (long).
- year: time variable (2000, 2001, ... , 2024).
- group_year: the year each country adopts the treatment (varies across countries). For countries that were never treated, group_year is 0. For countries that have not yet been treated, group_year is also 0, and once the treatment occurs, group_year takes the value of the treatment year.
Things I've tried:
- Ensured no missing values in key variables.
- Verified group_year is coded correctly (some units stay untreated throughout).
Thanks in advance!
Comment