Hello Stata experts,
I am quite new to the use of Stata. Luckily I found this forum because I have a specific question and hope that you can help me with that. I use panel data (6 years, 400 groups) and would like to run a DID analysis (after 3 years there is a reform - so I want to compare 3 years before and 3 years after). However, I do not know how I should proceed. The information I found so far (forums, tutorials etc) is only superficial - I am always missing the practical execution part. Therefore, please could you help me set up a rudimentary DID procedure in Stata? Ultimately I want to interpret the effect of the reform on my dependent variable (yvar).
That is how far I got. Obviously the important part is missing, but as I said, I do not know how to go on ...
Thank you very much. Best, Ronald
I am quite new to the use of Stata. Luckily I found this forum because I have a specific question and hope that you can help me with that. I use panel data (6 years, 400 groups) and would like to run a DID analysis (after 3 years there is a reform - so I want to compare 3 years before and 3 years after). However, I do not know how I should proceed. The information I found so far (forums, tutorials etc) is only superficial - I am always missing the practical execution part. Therefore, please could you help me set up a rudimentary DID procedure in Stata? Ultimately I want to interpret the effect of the reform on my dependent variable (yvar).
That is how far I got. Obviously the important part is missing, but as I said, I do not know how to go on ...
Code:
gen treatment = new == 1 gen after_reform = year > 2005 gen interaction = treatment*after_reform regr yvar treatment reform interaction, robust
Comment