I have one treatment and one control group. I would like to estimate and event study manually (for my understanding) and also using some command that makes it easy to graph the even study.
I estimate regular difference-in-difference with the following code which works as expected:
For event study estimates I use the following code:
Only point estimates are provided. Standard errors, t-statistics etc are omitted. Can someone help me understand what is happening? And maybe provide alternative stata commands that can check for pre-trends and graph the event study coefficients. And just to double check, the treatment#time coefficients are the ones I should be looking at for pre-trends analysis?
Here is the data:
I estimate regular difference-in-difference with the following code which works as expected:
Code:
reg outcome i.treatment##i.post
Code:
reg outcome i.treatment##i.time
Here is the data:
Code:
clear input byte(outcome treatment time post) 10 0 1 0 15 0 2 0 9 0 3 0 4 0 4 0 10 0 5 0 31 0 6 0 20 0 7 0 17 0 8 0 5 0 9 0 11 0 10 1 27 0 11 1 16 0 12 1 32 0 13 1 23 0 14 1 19 0 15 1 1 0 16 1 7 0 17 1 6 0 18 1 12 0 19 1 13 0 20 1 15 1 1 0 17 1 2 0 6 1 3 0 3 1 4 0 20 1 5 0 34 1 6 0 27 1 7 0 15 1 8 0 14 1 9 0 13 1 10 1 19 1 11 1 6 1 12 1 7 1 13 1 19 1 14 1 20 1 15 1 21 1 16 1 27 1 17 1 26 1 18 1 24 1 19 1 23 1 20 1 end
Comment