Dear Statalisters,
I am trying to estimate the impact of a labor law (went into action in 2008) on income and consumption.
The law was introduced in certain industries/sectors and not in others. Moreover, there are certain categories of people that were impacted (wage-employed) and others not (self-employed).
I have already done a diff-in-diff for specific treated industries.
My code is as such:
I would like to include a treated and control group within the treated industries following this idea: "A more robust analysis than either of the DD analyses described above can be obtained by using both a different state and a control group within the treatment state." from Imbens/Wooldridge, Lecture Notes 10, Summer ’07.
My treated group would be the wage-employed and control group would be the self-employed.
If I understand correctly, this means that I will have two did estimators right? One which I already have, and another one capturing the interaction between time, treated, and another treated group within the treated group. I am not sure I completely grasped the concept...
How can I code that in Stata? Could it be something like:
Thank you very much for your help!
I am trying to estimate the impact of a labor law (went into action in 2008) on income and consumption.
The law was introduced in certain industries/sectors and not in others. Moreover, there are certain categories of people that were impacted (wage-employed) and others not (self-employed).
I have already done a diff-in-diff for specific treated industries.
My code is as such:
HTML Code:
*** Difference in Difference estimations with industries *** * Generate a dummy variable to indicate when the treatment started: 2008 gen time=(year>2008) &!missing(year) * Generate a dummy variable to identify the group exposed to treatment gen treated =(indusprimjob==3|indusprimjob==8|indusprimjob==5|indusprimjob==6|indusprimjob==7|indusprimjob==15) &!missing(indusprimjob) * Generate an interaction term between time and treated gen did=time*treated
My treated group would be the wage-employed and control group would be the self-employed.
If I understand correctly, this means that I will have two did estimators right? One which I already have, and another one capturing the interaction between time, treated, and another treated group within the treated group. I am not sure I completely grasped the concept...
How can I code that in Stata? Could it be something like:
HTML Code:
gen treated =(indusprimjob==3|indusprimjob==8|indusprimjob==5|indusprimjob==6|indusprimjob==7|indusprimjob==15)|selfemployed==0 &!missing(indusprimjob,selfemployed)
Comment