qui xtreg Y X1 X2 X3 X4 X5 X6,re
est store ols
qui xtivreg Y X3 X4 X5 X6(X1=l.X1 X2=L.X2),re
est store IV
hausman IV ols
[url=] ----Coefficients ----[/url]
| (b) (B) (b-B) sqrt(diag(V_b-V_B))
| IV ols Difference S.E.
-------------+----------------------------------------------------------------
X1 | -3.710397 -1.676237 -2.03416 1.424533
X2 | -.5779464 .0474369 -.6253832 .3050339
X3 | .9867464 1.75292 -.7661734 .
X4 | -.4927819 -.5600477 .0672657 .
X5| .8044113 .1673918 .6370194 .
X6 | 2.973096 1.614825 1.358271 .0657908
------------------------------------------------------------------------------
b = consistent underHo and Ha; obtained from xtivreg
B = inconsistent under Ha,efficient under Ho; obtained from xtreg
Test: Ho: difference in coefficientsnot systematic
chi2(6) =(b-B)'[(V_b-V_B)^(-1)](b-B)
= -122.00 chi2<0 ==> model fitted on these
datafails to meet the asymptotic
assumptions of the Hausman test;
seesuest for a generalized test[a1]
[a1]
Hausman检验为负,STATA
dmexogxt仅适用于FE模型,怎么办