Dear all,
I am estimating a staggered-adoption DiD with csdid (Callaway & Sant’Anna) and my baseline is
I would appreciate guidance on three related issues: (i) when I include a conditional variable or other controls, how should I interpret the reported effects ATT? Furthermore, is it possible to use only time-invariant variables?
I want to assess gender heterogeneity without dropping observations; I know one can run a restricted sample, e.g.,
,
but this removes many observations and may change the composition of comparison units (“not-yet treated” controls). Within csdid, is there a recommended approach to obtain female and male effects jointly while preserving the original control structure and directly testing whether they differ (e.g., an officially supported postestimation route to aggregate ATT(g,t) by a grouping variable—something like an over(gender)—or a unified estimation that produces a formal test of the female–male difference)?
Consider that gender does not change for the same ID over time.
Furthermore, where should I place the conditioning variable: is the best/only supported way to include gender as a control in xvar() (so it enters the DR/propensity components), or is there any supported syntax to place it “next to the dependent variable” in csdid?
Any pointers to the correct syntax, postestimation commands, and references for interpreting ATTs with covariates and estimating/contrasting gender-specific effects without resorting to restricted samples would be greatly appreciated.
Many thanks,
Adriano Ruggiero
I am estimating a staggered-adoption DiD with csdid (Callaway & Sant’Anna) and my baseline is
Code:
csdid outcome, ivar(id) time(year) gvar(first_treat) method(drimp) wboot rseed(999) notyet long2
I want to assess gender heterogeneity without dropping observations; I know one can run a restricted sample, e.g.,
Code:
csdid outcome if gender==1, ivar(id) time(year) gvar(first_treat) method(drimp) wboot rseed(999) notyet long2
but this removes many observations and may change the composition of comparison units (“not-yet treated” controls). Within csdid, is there a recommended approach to obtain female and male effects jointly while preserving the original control structure and directly testing whether they differ (e.g., an officially supported postestimation route to aggregate ATT(g,t) by a grouping variable—something like an over(gender)—or a unified estimation that produces a formal test of the female–male difference)?
Consider that gender does not change for the same ID over time.
Furthermore, where should I place the conditioning variable: is the best/only supported way to include gender as a control in xvar() (so it enters the DR/propensity components), or is there any supported syntax to place it “next to the dependent variable” in csdid?
Any pointers to the correct syntax, postestimation commands, and references for interpreting ATTs with covariates and estimating/contrasting gender-specific effects without resorting to restricted samples would be greatly appreciated.
Many thanks,
Adriano Ruggiero

Comment