I would like to better understand the bias in the coefficient estimates of panel regressions when the RE assumption is violated. For this purpose, I consider the following setup:
To study this, I perform a single simulation run as follows:
What confuses me is the fact that the Hausman test rejects the null hypothesis of the RE assumption at any conventional level. However, the coefficient estimate for b2 is much closer to the true value of 2 in case of the RE estimation than in case of the FE estimation. Put differently, it looks as if the RE estimator in this case would be less biased than the FE estimator, but the Hausman test clearly favors FE estimation. Why is this? If considering such a situation in practice, does it really pay off to rely on FE estimation? Do I miss something?
Thanks a lot for your thoughts and insights on this.
- The dependent variable Yit is equal to Yit = b1 Xt + uit.
- Xt is a macro variable that only changes over time t but not across subjects i.
- Disturbance uit = ai + vit is strictly exogeneous to Xt. It contains a subject specific fixed effect ai and an orthogonal white noise disturbance term vit.
- Furthermore, there is a subject specific variable Zit = c1 ai + wit which is correlated with the subject specific fixed effects.
To study this, I perform a single simulation run as follows:
Code:
cls clear all * Panel setting local N = 50 local T = 100 * Setting for sigma_z local sigma_z = 0.05 * Span the panel tempfile Data_N set obs `N' gen ID = _n gen a_i = rnormal(0, 1) // fixed effects a_i save "`Data_N'" drop _all set obs `T' gen t = _n gen X_t = rnormal(2, 1) // c0=2, sigma(epsilon)=1 cross using "`Data_N'" order ID t xtset ID t, generic * Compute Y_it gen Y_it = 2*X_t + a_i + rnormal(0,1) * Generate subject characteristic Z_it gen Z_it = 0.5*a_i + rnormal(0, `sigma_z') * Panel regression & Hausman test xtreg Y_it X_t Z_it, fe estimates store FE xtreg Y_it X_t Z_it, re estimates store RE predict a_i_hat, u predict resid, ue hausman FE RE, sigmamore corr X_t Z_it a_i_hat resid
Thanks a lot for your thoughts and insights on this.
Comment