Lots of the newer difference-in-difference estimators do dynamic plotting of their effect sizes, with corresponding confidence intervals for all periods except the period before treatment (usually). Well, I want mine to do the same. Let's use it really quickly.
This estimates DID for Prop 99's effect on tobacco consumption, using the control group of only Montana, Colorado, Nevada, and Connecticut. We see the plot the command makes, as well as the way to manually reproduce the plot using e(series), where te3 is our pointwise treatment effect of interest and eventtime is the time to event. Well... how would I compute the uncertainty/SE for each point, sort of as we do with eventdd, or any one of the newer ones? That is, I wish to produce confidence intervals for these individual treatment effects.
My original thought was to use bootstrapping somehow to do this. Presumably I must look through the ado code of the newer estimators to really see the details, but I was wondering if there'd be a straightforward way to do this with the existing information FDID saves. How might I go about this, perhaps? Once I do that, I think I can extend a similar process to staggered adoption. Perhaps Diego Ciccia, Damian Clarke, or Jeff Wooldridge may have thoughts on this?
Code:
cap which fdid if _rc != 0 { net from "https://raw.githubusercontent.com/jgreathouse9/FDIDTutorial/main" net install fdid, replace net get fdid, replace } clear * u smoking, clear cls qui fdid cigsale, tr(treated) unitnames(state) gr2opts(scheme(sj) name(teplot, replace)) mkf newframe cwf newframe svmat e(series), names(col) line te3 event, xli(0)
My original thought was to use bootstrapping somehow to do this. Presumably I must look through the ado code of the newer estimators to really see the details, but I was wondering if there'd be a straightforward way to do this with the existing information FDID saves. How might I go about this, perhaps? Once I do that, I think I can extend a similar process to staggered adoption. Perhaps Diego Ciccia, Damian Clarke, or Jeff Wooldridge may have thoughts on this?
Comment