Dear Statalist Member,
I hope everything is fine.
I am doing a project with 12 variables (data panel which consist of 3 years and 33 provinces dataset). I just perform the Hausman test in order to see if I have to proceed with FE or RE models. Regarding the Hausman test result. This is the result of my Hausman test.
.xtset id year
panel variable: id (strongly balanced)
time variable: year, 2009 to 2014, but with gaps
delta: 1 unit
.xtreg realgdp consumption, fe
Fixed-effects (within) regression Number of obs = 99
Group variable: id Number of groups = 33
R-sq: Obs per group:
within = 0.9623 min = 3
between = 0.9556 avg = 3.0
overall = 0.9135 max = 3
F(1,65) = 1658.24
corr(u_i, Xb) = -0.8232 Prob > F = 0.0000
------------------------------------------------------------------------------
realgdp | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
consumption | 1.962263 .0481874 40.72 0.000 1.866026 2.0585
_cons | -7.01e+07 7494447 -9.35 0.000 -8.50e+07 -5.51e+07
-------------+----------------------------------------------------------------
sigma_u | 1.421e+08
sigma_e | 47540049
rho | .89938957 (fraction of variance due to u_i)
------------------------------------------------------------------------------
F test that all u_i=0: F(32, 65) = 8.64 Prob > F = 0.0000
.estimates store fe_panel
.xtreg realgdp consumption, re
Random-effects GLS regression Number of obs = 99
Group variable: id Number of groups = 33
R-sq: Obs per group:
within = 0.9623 min = 3
between = 0.9556 avg = 3.0
overall = 0.9135 max = 3
Wald chi2(1) = 1002.79
corr(u_i, X) = 0 (assumed) Prob > chi2 = 0.0000
------------------------------------------------------------------------------
realgdp | Coef. Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
consumption | 1.590491 .0502257 31.67 0.000 1.492051 1.688932
_cons | -2.55e+07 1.40e+07 -1.82 0.069 -5.30e+07 1953742
-------------+----------------------------------------------------------------
sigma_u | 40605907
sigma_e | 47540049
rho | .42181724 (fraction of variance due to u_i)
------------------------------------------------------------------------------
.estimates store re_panel
hausman fe_panel re_panel
---- Coefficients ----
| (b) (B) (b-B) sqrt(diag(V_b-V_B))
| fe_panel re_panel Difference S.E.
-------------+----------------------------------------------------------------
consumption | 1.962263 1.590491 .3717717 .
------------------------------------------------------------------------------
b = consistent under Ho and Ha; obtained from xtreg
B = inconsistent under Ha, efficient under Ho; obtained from xtreg
Test: Ho: difference in coefficients not systematic
chi2(1) = (b-B)'[(V_b-V_B)^(-1)](b-B)
= -689.00 chi2<0 ==> model fitted on these
data fails to meet the asymptotic
assumptions of the Hausman test;
see suest for a generalized test
Regarding hausman test result above, I have a question:
1. Please comment about my dataset availbility, is it good enough to run a panel data?
2. What informations we get from this Hausman test result?
3. How to interpret my Hausman test result?
4. Which one should I choose, RE or FE?
However, i will really appreciate it if my few question can be attended in an easy explanation.
Thanks in Advance
Ariyo DP Irhamna
I hope everything is fine.
I am doing a project with 12 variables (data panel which consist of 3 years and 33 provinces dataset). I just perform the Hausman test in order to see if I have to proceed with FE or RE models. Regarding the Hausman test result. This is the result of my Hausman test.
.xtset id year
panel variable: id (strongly balanced)
time variable: year, 2009 to 2014, but with gaps
delta: 1 unit
.xtreg realgdp consumption, fe
Fixed-effects (within) regression Number of obs = 99
Group variable: id Number of groups = 33
R-sq: Obs per group:
within = 0.9623 min = 3
between = 0.9556 avg = 3.0
overall = 0.9135 max = 3
F(1,65) = 1658.24
corr(u_i, Xb) = -0.8232 Prob > F = 0.0000
------------------------------------------------------------------------------
realgdp | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
consumption | 1.962263 .0481874 40.72 0.000 1.866026 2.0585
_cons | -7.01e+07 7494447 -9.35 0.000 -8.50e+07 -5.51e+07
-------------+----------------------------------------------------------------
sigma_u | 1.421e+08
sigma_e | 47540049
rho | .89938957 (fraction of variance due to u_i)
------------------------------------------------------------------------------
F test that all u_i=0: F(32, 65) = 8.64 Prob > F = 0.0000
.estimates store fe_panel
.xtreg realgdp consumption, re
Random-effects GLS regression Number of obs = 99
Group variable: id Number of groups = 33
R-sq: Obs per group:
within = 0.9623 min = 3
between = 0.9556 avg = 3.0
overall = 0.9135 max = 3
Wald chi2(1) = 1002.79
corr(u_i, X) = 0 (assumed) Prob > chi2 = 0.0000
------------------------------------------------------------------------------
realgdp | Coef. Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
consumption | 1.590491 .0502257 31.67 0.000 1.492051 1.688932
_cons | -2.55e+07 1.40e+07 -1.82 0.069 -5.30e+07 1953742
-------------+----------------------------------------------------------------
sigma_u | 40605907
sigma_e | 47540049
rho | .42181724 (fraction of variance due to u_i)
------------------------------------------------------------------------------
.estimates store re_panel
hausman fe_panel re_panel
---- Coefficients ----
| (b) (B) (b-B) sqrt(diag(V_b-V_B))
| fe_panel re_panel Difference S.E.
-------------+----------------------------------------------------------------
consumption | 1.962263 1.590491 .3717717 .
------------------------------------------------------------------------------
b = consistent under Ho and Ha; obtained from xtreg
B = inconsistent under Ha, efficient under Ho; obtained from xtreg
Test: Ho: difference in coefficients not systematic
chi2(1) = (b-B)'[(V_b-V_B)^(-1)](b-B)
= -689.00 chi2<0 ==> model fitted on these
data fails to meet the asymptotic
assumptions of the Hausman test;
see suest for a generalized test
Regarding hausman test result above, I have a question:
1. Please comment about my dataset availbility, is it good enough to run a panel data?
2. What informations we get from this Hausman test result?
3. How to interpret my Hausman test result?
4. Which one should I choose, RE or FE?
However, i will really appreciate it if my few question can be attended in an easy explanation.
Thanks in Advance
Ariyo DP Irhamna
Comment