To clarify things, I created a toy data set to test what goes on when I use FE in a DiD regression, with twelve observations in two states and three sectors where I observe an effect in only one state-sector pair with on pre- and one post- entry per observation (dataset printout below).
If I run a simple DiD regression:
xtset firm_id
xtreg y i.treat i.post i.treat##i.post, vce(cluster firm_id)
the interaction effect comes out as 0.5. This being (mechanically) the effect in the only state-sector pair (i.e. 3), by the number of pairs (6).
However, when I add state FE and sector FE:
xtreg y i.treat i.post i.treat##i.post i.sector i.state, vce(cluster firm_id)
it is not clear to me how Stata calculates them, and why the interaction effect in the estimation does not change (when it does in the real dataset I work with).
|
0 Response to Mechanics of FE in DiD estimation
Post a Comment