Hello Statlisters,
*Very* longtime reader (and Stata SE/18.0 user), first-time poster!
I am a newcomer to DID models. I have been using survey data from two states and three time periods to assess whether the implementation of adult-use cannabis sales (treat) is associated with a change in the prevalence of past 30-day cannabis use (mar30d_new, coded as 0 = no past 30-day cannabis use or 1 = any past 30-day cannabis use), adjusting for some sociodemographic characteristics (sex grade raceeth).
Here is an example of my code:
And here is my output:
My question -- is didregress an appropriate command to examine change in state-level prevalence of the outcome, particularly when my outcome data are at the individual level and not aggregated at the state level? Stata documentation refers to didregress for continuous outcomes only, but a dusty corner of my brain from grad school is tempting me to interpret .013 as a 1.3% increased prevalence (or perhaps 1.3% increased risk) of past 30-day cannabis in the treated vs. the control state.
If that dusty corner of my brain is incorrect, is there a binary outcome equivalent for the didregress Stata command that I have missed somehow? I would like to use the wildbootstrap option to compute 95% CIs given my small number of groups.
Thanks everyone for reading my post - looking forward to hearing from you!
*Very* longtime reader (and Stata SE/18.0 user), first-time poster!
I am a newcomer to DID models. I have been using survey data from two states and three time periods to assess whether the implementation of adult-use cannabis sales (treat) is associated with a change in the prevalence of past 30-day cannabis use (mar30d_new, coded as 0 = no past 30-day cannabis use or 1 = any past 30-day cannabis use), adjusting for some sociodemographic characteristics (sex grade raceeth).
Here is an example of my code:
Code:
didregress (mar30d_new sex grade raceeth) (treat), group(state) time(year)
Code:
Treatment and time information Time variable: year Control: treat = 0 Treatment: treat = 1 ----------------------------------- | Control Treatment -------------+--------------------- Group | state | 1 1 -------------+--------------------- Time | Minimum | 1 3 Maximum | 1 3 ----------------------------------- Difference-in-differences regression Number of obs = 63,033 Data type: Repeated cross-sectional (Std. err. adjusted for 2 clusters in state) ------------------------------------------------------------------------------ | Robust mar30d_new | Coefficient std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- ATET | treat | (1 vs 0) | .0129726 .0010093 12.85 0.049 .0001476 .0257976 ------------------------------------------------------------------------------ Note: ATET estimate adjusted for group effects and time effects.
If that dusty corner of my brain is incorrect, is there a binary outcome equivalent for the didregress Stata command that I have missed somehow? I would like to use the wildbootstrap option to compute 95% CIs given my small number of groups.
Thanks everyone for reading my post - looking forward to hearing from you!
Comment