Dear @FernandoRios,
Sorry to bother! I'm hoping you might be able to help me with an issues I'm having with the 'csdid' command in Stata.
I'm trying to implement the Callaway & Sant'Anna estimator for staggered differences-in-differences design. I have used the R package 'did' with the function 'attgt()', as well as the Stata function 'csdid'. I have about 12 different outcome variables. Essentially I can't make the results converge: for some outcome variables, results are very similar, but for others they are quite different.
I've attached a dataset for one variable. I'm using the Stata command:
and the R function:
The results are a bit different and I just can't work out why. I've also experimented with the 'notyet' and 'asinr' options, which do change Stata results a bit but still aren't the same as in R. I've also experimented with all of the different 'method()' options, but again results don't converge.
Do you have any suggestions?
Thanks a lot!
Rory
Sorry to bother! I'm hoping you might be able to help me with an issues I'm having with the 'csdid' command in Stata.
I'm trying to implement the Callaway & Sant'Anna estimator for staggered differences-in-differences design. I have used the R package 'did' with the function 'attgt()', as well as the Stata function 'csdid'. I have about 12 different outcome variables. Essentially I can't make the results converge: for some outcome variables, results are very similar, but for others they are quite different.
I've attached a dataset for one variable. I'm using the Stata command:
Code:
csdid tempO ln_GNI_pc ln_wdi_pop, ivar(ccode) time(year) gvar(firstZyear) method(dripw) estat group, post
Code:
att_gt(yname = "tempO", tname = "year", idname = "ccode", gname = "firstZyear", data = raw, xformla = ~ln_GNI_pc+ln_wdi_pop+1 ) aggte(attgt, type="group", na.rm=TRUE)
Do you have any suggestions?
Thanks a lot!
Rory
Comment