全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
20231 8
2008-12-25

众位高手,本人是stata菜鸟,在用stata的xtabond2命令估计GMM面板数据的过程如下:

xtabond2 lny lnk lnl lninstitute lnimport lnexport year if year<1998, gmm(lnk lnl lninstitute lnimport lnexport) iv(yea
> r) small orthogonal artests(1)
Favoring space over speed. To switch, type or click on mata: mata set matafavor speed, perm.
Warning: Number of instruments may be large relative to number of observations.

Dynamic panel-data estimation, one-step system GMM
------------------------------------------------------------------------------
Group variable: region                          Number of obs      =       560
Time variable : year                            Number of groups   =        28
Number of instruments = 502                     Obs per group: min =        20
F(6, 553)     =   2658.12                                      avg =     20.00
Prob > F      =     0.000                                      max =        20
------------------------------------------------------------------------------
         lny |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         lnk |   .6355087    .031301    20.30   0.000     .5740253    .6969921
         lnl |   .4814072   .0281808    17.08   0.000     .4260526    .5367618
 lninstitute |   .1667329   .0271387     6.14   0.000     .1134253    .2200405
    lnimport |   .0876987   .0133275     6.58   0.000     .0615199    .1138775
    lnexport |   .0019433   .0116698     0.17   0.868    -.0209793    .0248659
        year |    .024268   .0034393     7.06   0.000     .0175123    .0310238
       _cons |  -48.97727   6.834111    -7.17   0.000    -62.40126   -35.55327
------------------------------------------------------------------------------
Instruments for orthogonal deviations equation
  Standard
    D.(year)
  GMM-type (missing=0, separate instruments for each period unless collapsed)
    L(1/.).(lnk lnl lninstitute lnimport lnexport)
Instruments for levels equation
  Standard
    _cons
    year
  GMM-type (missing=0, separate instruments for each period unless collapsed)
    D.(lnk lnl lninstitute lnimport lnexport)
------------------------------------------------------------------------------
Arellano-Bond test for AR(1) in first differences: z =   2.50  Pr > z =  0.012
------------------------------------------------------------------------------
Sargan test of overid. restrictions: chi2(495)  = 968.86  Prob > chi2 =  0.000
  (Not robust, but not weakened by many instruments.)

Difference-in-Sargan tests of exogeneity of instrument subsets:
  GMM instruments for levels
    Sargan test excluding group:     chi2(443)  = 308.72  Prob > chi2 =  1.000
    Difference (null H = exogenous): chi2(52)   = 660.13  Prob > chi2 =  0.000
  iv(year)
    Sargan test excluding group:     chi2(494)  = 967.45  Prob > chi2 =  0.000
    Difference (null H = exogenous): chi2(1)    =   1.41  Prob > chi2 =  0.235

问题1:上述估计结果的可靠性如何?还存在什么问题?

问题2:当我进一步增加滞后变量时,却出现这样的提示"not sorted", 这又是什么原因?估计命令如下:

 xtabond2 lny l.lny l(0/1).( lnk lnl lninstitute lnimport lnexport infra) year if year<1998, gmm(l.lny l(0/1).(lnk lnl l
> ninstitute lnimport lnexport infra)) iv(year) small orthogonal artests(1)

not sorted
r(5);

请问,出现“not sorted”是什么原因?怎么才那克服?

谢谢给位高手!!!

二维码

扫码加我 拉你入群

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

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

全部回复
2008-12-26 00:17:00

因为没有因变量滞后项

二维码

扫码加我 拉你入群

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

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

2008-12-26 19:59:00

感谢楼上的,可我还是不明白到底是怎么回事?麻烦能不能解释的更清楚些?如何修改才能避免这个问题?

再次向你表示感谢!

二维码

扫码加我 拉你入群

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

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

2008-12-30 20:21:00
你的面板结构要按照id重新排列一下。然后就不会有这个问题了。
二维码

扫码加我 拉你入群

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

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

2009-7-30 09:36:02
我也遇到这个问题,后来发现忘记规定我用的是面板数据了
二维码

扫码加我 拉你入群

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

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

2009-12-19 11:28:23
举例:如果你的数据是年度数据,横截面数据是国家,国家代码是code
用命令 "xtset code year,yearly"定义一下就行了。
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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