Good Afternoon,
I'm doing research on the effects of the economic crisis on mortality rates in several provinces and so I have panel data on mortality rates and unemployment rates for different provinces for 14 years by quarter. My dependent variable is mortalityrate and my main independent variable is unemploymentrate. I'm trying to do a difference in difference regression to see the difference in pre-crisis and post-crisis mortality rates. The only STATA work I've done for difference in difference has been for impact evaluation where there was a treatment and control group so I wasn't sure how to apply DID to this particular research.
I've generated a precrisis variable: year<=2008
and a postcrisis variable: year>2009
I then made interaction terms Unemploymentrate*precrisis and Unemploymentrate*postcrisis
My first question is should I make two interaction terms one for precrisis and one for post or if only one time period is necessary?
2nd- do I need to create a dummy treatment variable or can I interact with the original unemploymentrate variable?
My 3rd question is can someone recommend a good method for DID?
I've seen "xtreg" with DID for controlling for fixed effects (In my regression I want to control for fixed effects for year and province)
I've also seen some examples with "xi: reg" and others that just use a regular regression.
Does this regression look okay?
xtreg mortalityrate unemploymentrate unemploymentrate*precrisis unemploymentrate*postcrisis dummyyear* dummyquarter* dummyprovince*, cluster(province)
My knowledge of STATA is basic so I'm not familiar with the nuances in the different commands.
Thank you in advance for any assistance!
I'm doing research on the effects of the economic crisis on mortality rates in several provinces and so I have panel data on mortality rates and unemployment rates for different provinces for 14 years by quarter. My dependent variable is mortalityrate and my main independent variable is unemploymentrate. I'm trying to do a difference in difference regression to see the difference in pre-crisis and post-crisis mortality rates. The only STATA work I've done for difference in difference has been for impact evaluation where there was a treatment and control group so I wasn't sure how to apply DID to this particular research.
I've generated a precrisis variable: year<=2008
and a postcrisis variable: year>2009
I then made interaction terms Unemploymentrate*precrisis and Unemploymentrate*postcrisis
My first question is should I make two interaction terms one for precrisis and one for post or if only one time period is necessary?
2nd- do I need to create a dummy treatment variable or can I interact with the original unemploymentrate variable?
My 3rd question is can someone recommend a good method for DID?
I've seen "xtreg" with DID for controlling for fixed effects (In my regression I want to control for fixed effects for year and province)
I've also seen some examples with "xi: reg" and others that just use a regular regression.
Does this regression look okay?
xtreg mortalityrate unemploymentrate unemploymentrate*precrisis unemploymentrate*postcrisis dummyyear* dummyquarter* dummyprovince*, cluster(province)
My knowledge of STATA is basic so I'm not familiar with the nuances in the different commands.
Thank you in advance for any assistance!
Comment