全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
13951 12
2016-09-20
进行Hausman检验后,没有得到结果如何处理啊?是什么原因导致的?请各位大牛帮忙解答一下!感谢!
. hausman fe re

Note: the rank of the differenced variance matrix (0) does not equal the number of coefficients being tested (9); 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.
-------------+----------------------------------------------------------------
        lnsi |    .0294877     .0294877               0               0
        lnsw |   -.0245635    -.0245635               0               0
        lnsa |   -.0371254    -.0371254               0               0
        lnsc |     .008753      .008753               0               0
      lnopen |   -.0305578    -.0305578               0               0
         cit |   -.8609542    -.8609542               0               0
         inv |   -.0597495    -.0597495               0               0
         hum |    .0327561     .0327561               0               0
         age |   -.6969007    -.6969007               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)


二维码

扫码加我 拉你入群

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

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

全部回复
2016-9-20 11:43:29
請把你使用的指令 show 一下!你是不是估計同樣模型啊?結果都一樣!
二维码

扫码加我 拉你入群

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

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

2016-9-20 20:36:17
黃河泉 发表于 2016-9-20 11:43
請把你使用的指令 show 一下!你是不是估計同樣模型啊?結果都一樣!
xtset region year
gen lnsi=ln(si)
gen lnsw=ln(sw)
gen lnsa=ln(sa)
gen lnsc=ln(sc)
gen lnopen=ln(open)
xtreg theil lnsi lnsw lnsa lnsc lnopen cit inv hum age, fe
xtreg theil lnsi lnsw lnsa lnsc lnopen cit inv hum age, re
quietly theil lnsi lnsw lnsa lnsc lnopen cit inv hum age, fe
estimates store fe
quietly theil lnsi lnsw lnsa lnsc lnopen cit inv hum age, re
estimates store re
hausman fe re
你好,这是我的指令,请指点!
二维码

扫码加我 拉你入群

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

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

2016-9-20 20:41:54
chengchao 发表于 2016-9-20 20:36
xtset region year
gen lnsi=ln(si)
gen lnsw=ln(sw)
又检查了一遍,掉了命令。谢谢您啊
二维码

扫码加我 拉你入群

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

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

2016-9-21 07:55:33
chengchao 发表于 2016-9-20 20:41
又检查了一遍,掉了命令。谢谢您啊
No problem at all.
二维码

扫码加我 拉你入群

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

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

2016-10-1 16:19:54
豪斯曼检验的值如果是负值就不会出现检验结果。建议:
quietly xtreg y x1 x2 x3 x4,re
scalar theta=e(theta)
global yandxforhausman y x1 x2 x3 x4
sort state
foreach x of varlist $yandxforhausman {
by state:egen mean`x'=mean(`x')
gen md`x'=`x'-mean`x'
gen red`x'=`x'-theta*mean`x'
  }
quietly xtreg redy redx1 redx2 redx3 redx4 mdx1 mdx2 mdx3 mdx4,vce(cluster state)
test mdx1 mdx2 mdx3 mdx4      
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群