from help file,除此对于small T, large N , 还可以用 xtabond and xtabond2
help ivreg2
help xtabond2
(Heteroskedastic and autocorrelation-consistent (HAC) inference in an OLS
regression)
. ivreg2 cinf unem, bw(3) kernel(bartlett) robust small
. newey cinf unem, lag(2)
(AC and HAC in IV and GMM estimation)
. ivreg2 cinf (unem = l(1/3).unem), bw(3)
. ivreg2 cinf (unem = l(1/3).unem), bw(3) gmm2s kernel(thann)
. ivreg2 cinf (unem = l(1/3).unem), bw(3) gmm2s kernel(qs) robust
orthog(l1.unem)
(Examples using Large N, Small T Panel Data)
. use
http://fmwww.bc.edu/ec-p/data/macro/abdata.dta
. tsset id year
(Autocorrelation-consistent inference in an IV regression)
. ivreg2 n (w k ys = d.w d.k d.ys d2.w d2.k d2.ys), bw(1) kernel(tru)
(Two-step effic. GMM in the presence of arbitrary heteroskedasticity and
autocorrelation)
. ivreg2 n (w k ys = d.w d.k d.ys d2.w d2.k d2.ys), bw(2) gmm2s
kernel(tru) robust
(Two-step effic. GMM in the presence of arbitrary heterosked. and
intragroup correlation)
. ivreg2 n (w k ys = d.w d.k d.ys d2.w d2.k d2.ys), gmm2s cluster(id)
statax 发表于 2006-1-26 14:11 
question: 在什么时候需要检验panel的自相关?
比如只有T=6,而N=30,需要吗?因为时序个数只有6,而截面却是大样本!!