楼主: yy876
2311 4

[面板数据求助] stata的hausman检验求助 [推广有奖]

  • 0关注
  • 0粉丝

高中生

70%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
40 点
帖子
1
精华
0
在线时间
69 小时
注册时间
2017-10-19
最后登录
2018-4-9

相似文件 换一批

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
stata的hausman检验 stata的hausman检验最后的一步p值没有,上面的数据也会出现e,求助大神,我是哪一步出错了?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Hausman检验 hausman ausman Stata tata

沙发
黃河泉 在职认证  发表于 2017-10-26 08:16:46 |只看作者 |坛友微信交流群
请把你的 re/fe 之结果(还有指令)发出来,还有你的 hausman test 指令!

使用道具

藤椅
broccx 发表于 2020-4-29 18:14:59 |只看作者 |坛友微信交流群
黃河泉 发表于 2017-10-26 08:16
请把你的 re/fe 之结果(还有指令)发出来,还有你的 hausman test 指令!
黄老师您好,我有一样的问题,麻烦您看下

.  xtreg y x2 x3 x4 x5,fe

Fixed-effects (within) regression               Number of obs     =        224
Group variable: province                        Number of groups  =         28

R-sq:                                           Obs per group:
     within  = 0.7772                                         min =          8
     between = 0.6730                                         avg =        8.0
     overall = 0.6731                                         max =          8

                                                F(4,192)          =     167.44
corr(u_i, Xb)  = -0.6325                        Prob > F          =     0.0000

------------------------------------------------------------------------------
           y |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          x2 |   .0207524   .0102437     2.03   0.044     .0005479     .040957
          x3 |   .4202323   .0625765     6.72   0.000     .2968067     .543658
          x4 |   1.207865   1.154845     1.05   0.297    -1.069947    3.485677
          x5 |   1.489483   .2113146     7.05   0.000     1.072687    1.906279
       _cons |  -6117.054    843.726    -7.25   0.000    -7781.216   -4452.892
-------------+----------------------------------------------------------------
     sigma_u |  6134.7585
     sigma_e |  2374.9377
         rho |  .86966489   (fraction of variance due to u_i)
------------------------------------------------------------------------------
F test that all u_i=0: F(27, 192) = 22.66                    Prob > F = 0.0000

.  xtreg y x2 x3 x4 x5,re

Random-effects GLS regression                   Number of obs     =        224
Group variable: province                        Number of groups  =         28

R-sq:                                           Obs per group:
     within  = 0.7693                                         min =          8
     between = 0.6909                                         avg =        8.0
     overall = 0.6970                                         max =          8

                                                Wald chi2(4)      =     654.82
corr(u_i, X)   = 0 (assumed)                    Prob > chi2       =     0.0000

------------------------------------------------------------------------------
           y |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          x2 |   .0130925   .0091652     1.43   0.153    -.0048709    .0310559
          x3 |   .3515936    .059211     5.94   0.000     .2355421     .467645
          x4 |   .6421501   1.083607     0.59   0.553    -1.481681    2.765981
          x5 |   1.838387   .2097731     8.76   0.000     1.427239    2.249535
       _cons |  -3889.929   1051.447    -3.70   0.000    -5950.727   -1829.132
-------------+----------------------------------------------------------------
     sigma_u |    3804.75
     sigma_e |  2374.9377
         rho |   .7196161   (fraction of variance due to u_i)
------------------------------------------------------------------------------

.  estimates store fe

.  estimates store re

.  hausman fe re

Note: the rank of the differenced variance matrix (0) does not equal the number of coefficients
        being tested (4); be sure this is what you expect, or there may be problems computing the
        test.  Examine the output of your estimators for anything unexpected and possibly consider
        scaling your variables so that the coefficients are on a similar scale.

                 ---- Coefficients ----
             |      (b)          (B)            (b-B)     sqrt(diag(V_b-V_B))
             |       fe           re         Difference          S.E.
-------------+----------------------------------------------------------------
          x2 |    .0130925     .0130925               0               0
          x3 |    .3515936     .3515936               0               0
          x4 |    .6421501     .6421501               0               0
          x5 |    1.838387     1.838387               0               0
------------------------------------------------------------------------------
                           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(0) = (b-B)'[(V_b-V_B)^(-1)](b-B)
                          =        0.00
                Prob>chi2 =           .
                (V_b-V_B is not positive definite)

.         
.
end of do-file

.

使用道具

板凳
产业经济论文 发表于 2020-6-30 21:42:03 来自手机 |只看作者 |坛友微信交流群
黃河泉 发表于 2017-10-26 08:16
请把你的 re/fe 之结果(还有指令)发出来,还有你的 hausman test 指令!
我给11个省15年数据做空间回归,出现了 warning on the hausman test :Var—Cov delta has not full rank是怎么回事?

使用道具

报纸
黃河泉 在职认证  发表于 2020-7-1 07:54:38 |只看作者 |坛友微信交流群
产业经济论文 发表于 2020-6-30 21:42
我给11个省15年数据做空间回归,出现了 warning on the hausman test :Var—Cov delta has not full rank ...
试试
  1. xtreg y x2 x3 x4 x5, fe
  2. estimates store fe
  3. xtreg y x2 x3 x4 x5, re
  4. estimates store re
  5. hausman fe re
复制代码

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-5-21 08:45