楼主: 707780433
8320 1

[编程问题求助] stata命令2sls无效 [推广有奖]

  • 1关注
  • 7粉丝

已卖:1639份资源

讲师

61%

还不是VIP/贵宾

-

威望
0
论坛币
10163 个
通用积分
11.8832
学术水平
10 点
热心指数
7 点
信用等级
5 点
经验
11927 点
帖子
129
精华
0
在线时间
934 小时
注册时间
2012-12-31
最后登录
2025-12-28

楼主
707780433 学生认证  发表于 2016-1-10 22:22:26 |AI写论文
100论坛币
请教一个问题,我用stata进行2sls检验时,显示2sls invalid name,请问该怎么办?
我利用Hausman检验检测内生性存在性问题时,结果如下
xtreg lnexpy ie lnstock_gdp lnydyw lnpland lnfdi lnfai, fe
est store fe
xtivreg lnexpy lnstock_gdp lnydyw lnpland lnfdi lnfai (ie=L1.ie L2.ie), fe
est store fe_iv
hausman fe fe_iv
结果是下面这个,不知道哪里出错了,没有出现P值,所以无法判定内生性

                 ---- Coefficients ----
             |      (b)          (B)            (b-B)     sqrt(diag(V_b-V_B))
             |       fe         fe_iv        Difference          S.E.
-------------+----------------------------------------------------------------
          ie |    .1110073     .6732604       -.5622531               .
lnstock_gdp |    .0750747     .0671945        .0078803               .
      lnydyw |    .0519486     .0598403       -.0078918               .
     lnpland |   -.2802198    -.1341647       -.1460551               .
       lnfdi |    .1275304     .0791245        .0484059               .
       lnfai |    .2098919     .1978565        .0120354               .
------------------------------------------------------------------------------
                           b = consistent under Ho and Ha; obtained from xtreg
          B = inconsistent under Ha, efficient under Ho; obtained from xtivreg

    Test:  Ho:  difference in coefficients not systematic

                  chi2(6) = (b-B)'[(V_b-V_B)^(-1)](b-B)
                          =   -21.35    chi2<0 ==> model fitted on these
                                        data fails to meet the asymptotic
                                        assumptions of the Hausman test;
                                        see suest for a generalized test

请各位大神指教上面的两个问题,感激不尽。

关键词:stata命令 Stata 2SLS tata coefficients invalid 性问题 store 检测

沙发
heric221 在职认证  发表于 2016-1-11 10:12:16
hausman fe_iv  fe
详见“help hausman”

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

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