Hello,
I am new to Stata and econometric analysis, and I am conducting a Difference-in-Differences (DiD) analysis for my research. I have a dataset with multiple treatment periods and groups:
I have cleaned the data and am ready to proceed with the main analysis, but I need guidance on the following:
Thank you so much for your help!
I am new to Stata and econometric analysis, and I am conducting a Difference-in-Differences (DiD) analysis for my research. I have a dataset with multiple treatment periods and groups:
- 8 groups (cities) in total:
- 3 groups never receive treatment.
- 5 groups receive treatment at different times. Three of these treatment groups receive treatment in the same year, while the other two receive treatment in different years.
- I have created the following variables already:
- Treated: 0 for control and 1 for treatment groups
- Treatment: 0 for all control groups, 0 for all pre-treatment periods of the treatment group and 1 for the year in which treatment is implemented (remains 1 in the following time periods)
- group_id: groups the year and the specific group (city)
- unit_id: identifies the unique units within each group
I have cleaned the data and am ready to proceed with the main analysis, but I need guidance on the following:
- Model choice: Should I use the csdid or xthdidregress command for this setup?
- Parallel trends:
- Are there any additional variables I need to create?
- Do I need to test for the parallel trends assumption before running the main analysis?
- If so, how should I test this in Stata?
- If the assumption doesn't hold, do I need to restructure the data to ensure parallel trends, or does the model automatically adjust for it?
Thank you so much for your help!
Comment