sergiocorreia / ivreghdfe

Run IV/2SLS with many levels of fixed effects (i.e. ivreg2+reghdfe)
MIT License
77 stars 27 forks source link

Fixed Effects in Second Stage #31

Open KevinCNg opened 3 years ago

KevinCNg commented 3 years ago

Hello,

I was trying to estimate an instrumental variables regression using individual fixed effects in the second stage. However, I do not want to use these fixed effects in the first stage. I know that the absorb commands includes the fixed effects in both the first and second stage. Is there an additional absorb command to only use the fixed effects in the second stage (but not the first stage)?

My current alternative is to use categorical variables (the "i." command), which is quite slow as it calculates the standard errors for these fixed effects. Another alternative is to demean the dependent variable within the fixed effect groups, but the corresponding standard error adjustment for degrees of freedom becomes quite complicated, especially when clustering standard errors.

Any suggestions would be greatly appreciated.

Thank you!