Closed grigoryaleksin closed 1 month ago
Hi @grigoryaleksin
Is there any chance you can provide us with graphical output of the sdid command for this? If you have a working version of data even better, but with the output of sdid we can probably get more of an idea of what's potentially happening.
Kind regards, Damian
Dear Damian,
I can make a subset asap of my data that replicates the issue (otherwise it will take about 12hrs to run with the full sample). Since I have many adoption dates, the graphical output from SDID would yield me a large gallery of graphs. I can run it and get all of them, or was there something else you were thinking of?
Kind regards, Grigory
Dear Damian,
Attached are a data extract and DO file that can replicate the problem. Without inference, as is done in the DO, it runs in under 20mins.
Kind regards, Grigory
To given another replication of the error, I have picked a cohort in the middle of the sample. The two graphs are given above. In the first case, the large pre-trend violations that sdid_event give should probably not be there.
Hi @grigoryaleksin,
I'm sorry it's taken a little bit of time to address this. It turns out that this was caused by a bug which occurred when placebo()
and effects()
were used with less than the maximum number. In cases such as these, the placebo effects returned were actually grabbing true post treatment effects. This has been corrected in a bug fix incorporated into sdid_event today by @DiegoCiccia. I have tried with your data, and example, and this all appears to be corrected. If you re-install the version of sdid_event
on the github page, this should all be corrected now. We will update this in the SSC in the near future.
Apologies for the delay in responding to this, and any inconveniences this has caused.
I will close this issue for now, but please feel free to write here in case of any questions, concerns, etc. Thanks very much for reporting this, and for such a clearly documented example!
Best wishes, Damian
Dear Daniel,
I have used sdid_event to look at a case with staggered adoption. My panel is balanced and sdid works well, but it feels as if something all the estimated coefficients are shifted upwards by some constant. Maybe, I have not specified some particular option correctly, but intuitively it feels as if something goes wrong. To illustrate the problem, consider the following event study graph from using synthetic control or SDID:
In either case, pre-trends are violated but only in level terms which is quite unusual. Any suggestions, if I have made any mistakes code-wise? For example, in the SC I ran:
sdid_event ma_asb numeric_id month_number large_project_one if two_year_count ==0, vce(placebo) brep(50) placebo(12) effects(24) method(sc)
Any help would be much appreciated.
Kind regards, Grigory