楼主: zppa66
35056 18

[其他] 关于hausman检验为负值的问题? [推广有奖]

  • 0关注
  • 2粉丝

博士生

21%

还不是VIP/贵宾

-

威望
0
论坛币
417628 个
通用积分
3.0482
学术水平
0 点
热心指数
1 点
信用等级
0 点
经验
5181 点
帖子
154
精华
0
在线时间
277 小时
注册时间
2009-10-10
最后登录
2024-6-16

楼主
zppa66 发表于 2011-4-9 23:05:40 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
我是刚刚学习stata的菜鸟,我在写文章的时候发现随机效应都能通过B-P检验,而在对固定效应的hausman检验时,其检验值均为负数,不知道该怎么处理。hausman检验的原假设是接受随机效应,备选假设是接受固定效应,那么在hausman检验通过的情况下,拒绝原假设,接受固定效应,那么是不是可以这么说,如果hausman检验不能通过的情况下就接受随机效应。望各位stata前辈多多指教!还有一个问题,如果hausman检验后的P值为0.095,那么我们可不可以说在5%的显著性检验下通不过检验,即我们可以选择随机效应模型进行分析。谢谢。
二维码

扫码加我 拉你入群

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

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

关键词:Hausman检验 hausman ausman Man Aus 文章 模型

沙发
hxlmervyn 发表于 2011-4-9 23:11:43
hausman不是检验一个吧
命令是hausman fe re的
呵呵

藤椅
zppa66 发表于 2011-4-9 23:26:33
2# hxlmervyn
hausman检验是xtreg******,fe 储存结果;xtreg*******,re储存结果,然后是hausman.fe.
追梦人,破则立,遇强则强!

板凳
mmsm863 发表于 2011-4-10 00:08:53
hausman,D矩阵要损失cross-section 单位个自由度,因此,一般是认为RE成立。

报纸
zppa66 发表于 2011-4-10 00:17:15
4# mmsm863
要在什么样的情况下我们可以用随机效应进行分析!谢谢!
追梦人,破则立,遇强则强!

地板
arlionn 在职认证  发表于 2011-4-10 10:13:15
hausman 检验统计量为负,可以认为是原假设不成立,应该采用 FE。
可以考虑采用 xtoverid 命令作为替代性检验方法。
详见:http://www.stata.com/statalist/archive/2007-07/msg00482.html
参考 Wooldridge(2002,p.290), 对该检验统计量的原理和表达式进行了详细说明。
已有 2 人评分论坛币 学术水平 热心指数 信用等级 收起 理由
yiruodongchuan + 1 + 1 + 1 + 1 观点有启发
loorine + 1 + 1 精彩帖子

总评分: 论坛币 + 1  学术水平 + 2  热心指数 + 2  信用等级 + 1   查看全部评分

7
zppa66 发表于 2011-4-20 20:58:35
6# arlionn
谢谢,原来你是连老师啊!~
追梦人,破则立,遇强则强!

8
jackdaniel2009 发表于 2011-8-26 17:18:39
是啊,我发现是连老师的时候也激动了一下呢,连老师的STATA课程不错,讲的很清楚,在论坛上回答问题也很耐心。

9
fyz1728 发表于 2011-9-17 17:24:11

10
snow1985 发表于 2011-9-25 14:21:43
xtreg codcrbz agdp1 agdp1agdp1, fe

Fixed-effects (within) regression               Number of obs      =        84
Group variable (i): id                          Number of groups   =         4

R-sq:  within  = 0.8114                         Obs per group: min =        21
       between = 0.2815                                        avg =      21.0
       overall = 0.6496                                        max =        21

                                                F(2,78)            =    167.74
corr(u_i, Xb)  = -0.0385                        Prob > F           =    0.0000

------------------------------------------------------------------------------
     codcrbz |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       agdp1 |   .0051631   .0005732     9.01   0.000     .0040218    .0063043
  agdp1agdp1 |  -5.19e-08   1.62e-08    -3.21   0.002    -8.42e-08   -1.97e-08
       _cons |   115.1847   3.551677    32.43   0.000     108.1138    122.2555
-------------+----------------------------------------------------------------
     sigma_u |   18.72669
     sigma_e |  13.045822
         rho |  .67325932   (fraction of variance due to u_i)
------------------------------------------------------------------------------
F test that all u_i=0:     F(3, 78) =    40.76               Prob > F = 0.0000

.
. est store fe3

.
. xtreg codcrbz agdp1 agdp1agdp1,re

Random-effects GLS regression                   Number of obs      =        84
Group variable (i): id                          Number of groups   =         4

R-sq:  within  = 0.8110                         Obs per group: min =        21
       between = 0.2917                                        avg =      21.0
       overall = 0.6528                                        max =        21

Random effects u_i ~ Gaussian                   Wald chi2(2)       =    290.67
corr(u_i, X)       = 0 (assumed)                Prob > chi2        =    0.0000

------------------------------------------------------------------------------
     codcrbz |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       agdp1 |   .0053324   .0006186     8.62   0.000       .00412    .0065448
  agdp1agdp1 |  -5.77e-08   1.75e-08    -3.30   0.001    -9.21e-08   -2.34e-08
       _cons |   114.4698   5.472366    20.92   0.000     103.7441    125.1954
-------------+----------------------------------------------------------------
     sigma_u |  7.2056865
     sigma_e |  13.045822
         rho |  .23376102   (fraction of variance due to u_i)
------------------------------------------------------------------------------

.
. est store re3

.
. hausman fe3 re3

Note: the rank of the differenced variance matrix (1) does not equal the number of coefficients being tested (2); 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))
             |      fe3          re3         Difference          S.E.
-------------+----------------------------------------------------------------
       agdp1 |    .0051631     .0053324       -.0001693               .
  agdp1agdp1 |   -5.19e-08    -5.77e-08        5.80e-09               .
------------------------------------------------------------------------------
                           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)
                          =    -0.53    chi2<0 ==> model fitted on these
                                        data fails to meet the asymptotic
                                        assumptions of the Hausman test;
                                        see suest for a generalized test

. hausman fe3 sigmaless
estimation result sigmaless not found
r(111);

. hausman fe3 sigmamore
estimation result sigmamore not found
r(111);

. hausman fe3 ,sigmaless

Note: the rank of the differenced variance matrix (1) does not equal the number of coefficients being tested (2); 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))
             |      fe3          re3         Difference          S.E.
-------------+----------------------------------------------------------------
       agdp1 |    .0051631     .0053324       -.0001693               .
  agdp1agdp1 |   -5.19e-08    -5.77e-08        5.80e-09               .
------------------------------------------------------------------------------
                           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)
                          =    -0.05    chi2<0 ==> model fitted on these
                                        data fails to meet the asymptotic
                                        assumptions of the Hausman test;
                                        see suest for a generalized test

. hausman fe3, sigmamore

Note: the rank of the differenced variance matrix (1) does not equal the number of coefficients being tested (2); 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))
             |      fe3          re3         Difference          S.E.
-------------+----------------------------------------------------------------
       agdp1 |    .0051631     .0053324       -.0001693               .
  agdp1agdp1 |   -5.19e-08    -5.77e-08        5.80e-09               .
------------------------------------------------------------------------------
                           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)
                          =    -0.12    chi2<0 ==> model fitted on these
                                        data fails to meet the asymptotic
                                        assumptions of the Hausman test;
                                        see suest for a generalized test
急求解决hausman为负值的情况

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-2 17:40