Thanks in advance. I recently posted a question (this has the large datax for models in the table below) about some confusing results that differed vastly between xthdidregress options aipw and twfe. In the summary below, the aipw option behaves similarly to classic FE and DiD models, while I get vastly different results using the twfe option, which should be the most appropriate model due to simultaneous treatment. I did not get a clear answer in the first attempt (I was unclear), but after further reading I think I found an explanation and want to get some confirmation and/or advice.
My data:
Questions:
See key columns 3 and 4 in the output summarized from my original post's datax:
My data:
- 90 cities in a panel from 2006 to 2011
- 15 cities get an unanticipated treatment simultaneously in 2009
- Because all treatment time is the same, I should be using Wooldridge's method to test for heterogeneity in treatment effects among units
- The treatment is a sudden influx of migrants. I want to test for economic increase post-treatment above expected increases resulting from logged population.
- Crucially, log_pop is time-variant AND I expect log_pop to increase faster for post-treatment treated observations (this is what I'm controlling for)
Questions:
- Is it correct that the xthdidregress twfe specification is not appropriate for time-varying controls?
- And/or is it specifically a problem when the control is expected to change for treated after treatment?
- Is there some solution that lets me control for time-varying factors while also checking for heterogeneity in treatment effects for time-invariant factors of interest (like pre-treatment average population, for example)?
See key columns 3 and 4 in the output summarized from my original post's datax:
Code:
(1) (2) (3) (4) TWFE Classic_DiD AIPW TWFE_Woolridge treatment_event 0.069*** 0.069*** (0.017) (0.017) log_pop 0.028 0.028 (0.074) (0.096) year=2006 0.000 0.000 (.) (.) year=2007 -0.024* -0.024** 0.003 (0.011) (0.009) (0.018) year=2008 0.004 0.004 0.010 (0.011) (0.011) (0.015) year=2009 -0.011 -0.011 0.023 0.010 (0.012) (0.016) (0.015) (0.027) year=2010 -0.017 -0.017 0.072*** 0.037 (0.012) (0.016) (0.022) (0.042) year=2011 0.007 0.007 0.093** 0.046 (0.013) (0.017) (0.030) (0.048) Observations 540 540 540 540
Comment