Exactly, that's what I mean. I'm confused now.
The following code you suggested [xtreg unemp i.treat i.post i.treatpost i.sex age, fe vce(cluster n_city)] does not account for fixed differences between cross-sections, does it?
As far as I know, when running panel regressions, I need to include a set of dummies to control for fixed differences between cities (city-fixed effect) and a set of dummies to control for trends that are common to all cities (year fixed effect)
That's why I put 'i.year' instead of 'i.post' in the regression and that gives different DD estimates.
The code in #2: xtreg unemp i.treat i.post i.treatpost i.sex age, fe vce(cluster n_city)
My code: xtreg unemp i.treat i.year i.treatpost i.sex age, fe vce(cluster n_city)
The following code you suggested [xtreg unemp i.treat i.post i.treatpost i.sex age, fe vce(cluster n_city)] does not account for fixed differences between cross-sections, does it?
As far as I know, when running panel regressions, I need to include a set of dummies to control for fixed differences between cities (city-fixed effect) and a set of dummies to control for trends that are common to all cities (year fixed effect)
That's why I put 'i.year' instead of 'i.post' in the regression and that gives different DD estimates.
The code in #2: xtreg unemp i.treat i.post i.treatpost i.sex age, fe vce(cluster n_city)
My code: xtreg unemp i.treat i.year i.treatpost i.sex age, fe vce(cluster n_city)
Comment