连老师,我在用你第七讲PANELDATA中使用xtabond2命令时自己的STATA中没有显示hansen检验结果,不知是何原因,另外该命令在STATA10.0中必须附加nomata选项才可以运行么,否则不能运行?
. use "D:\Stata10\abdata.dta", clear
. do "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\STD03000000.tmp"
. xtabond2 n L.n L(0/1).(w k) yr1978-yr1984, ///
> gmm(L.n) iv(L(0/1).(w k) yr1978-yr1984) ///
> robust small
Favoring space over speed. To switch, type or click on mata: mata set matafavor speed, perm.
Warning: Two-step estimated covariance matrix of moments is singular.
Using a generalized inverse to calculate robust weighting matrix for Hansen test.
Difference-in-Sargan/Hansen statistics may be negative.
.
end of do-file
. do "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\STD03000000.tmp"
. *== 系统 GMM 估计量
. xtabond2 n L.n L(0/1).(w k) yr1978-yr1984, ///
> gmm(L.n) iv(L(0/1).(w k) yr1978-yr1984) ///
> robust small nomata
Building GMM instruments..
Estimating.
Performing specification tests.
Dynamic panel-data estimation, one-step system GMM
------------------------------------------------------------------------------
Group variable: id Number of obs = 891
Time variable : year Number of groups = 140
Number of instruments = 47 Obs per group: min = 6
F(12, 139) = 1944.57 avg = 6.36
Prob > F = 0.000 max = 8
------------------------------------------------------------------------------
| Robust
n | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
n |
L1. | .8271481 .0446552 18.52 0.000 .7388569 .9154393
w |
--. | -.4527507 .1645629 -2.75 0.007 -.7781208 -.1273807
L1. | .3433344 .1620574 2.12 0.036 .0229182 .6637506
k |
--. | .340388 .0577688 5.89 0.000 .2261687 .4546073
L1. | -.1986107 .0604901 -3.28 0.001 -.3182104 -.079011
yr1978 | .0020453 .01871 0.11 0.913 -.0349476 .0390383
yr1979 | .0063316 .0228688 0.28 0.782 -.038884 .0515472
yr1980 | -.0187114 .0237909 -0.79 0.433 -.0657502 .0283273
yr1981 | -.0613047 .0313112 -1.96 0.052 -.1232126 .0006031
yr1982 | -.0391016 .0336971 -1.16 0.248 -.1057269 .0275236
yr1983 | -.0216804 .0302384 -0.72 0.475 -.0814671 .0381063
yr1984 | -.0197512 .0394761 -0.50 0.618 -.0978025 .0583
_cons | .5796057 .1763682 3.29 0.001 .2308944 .928317
------------------------------------------------------------------------------
Arellano-Bond test for AR(1) in first differences: z = -4.04 Pr > z = 0.000
Arellano-Bond test for AR(2) in first differences: z = -0.42 Pr > z = 0.673
Sargan test of overid. restrictions: chi2(34) = 97.86 Prob > chi2 = 0.000
(Not robust but not weakened by many instruments.)
Hansen test of overid. restrictions: chi2(.) = . Prob > chi2 = .
(Robust but weakened by many instruments.)
.
end of do-file