hugenli 发表于 2011-8-17 17:14 
再请问一下,那个滞后阶数lags应该怎么确定呢?
you can use
Levin-Lin-Chu test
Specifying lags(aic #) in this test requests that the number of lags of the series be chosen such that the Akaike information criterion (AIC) for the regression is minimized.
xtunitroot llc will fit ADF regressions with 1 to # lags and choose the regression for which the AIC is minimized
. xtunitroot llc lnrxrate, lags(aic 1)
Levin-Lin-Chu unit-root test for lnrxrate
-----------------------------------------
Ho: Panels contain unit roots Number of panels = 151
Ha: Panels are stationary Number of periods = 34
AR parameter: Common Asymptotics: N/T -> 0
Panel means: Included
Time trend: Not included
ADF regressions: 0.31 lags average (chosen by AIC)
LR variance: Bartlett kernel, 10.00 lags average (chosen by LLC)
------------------------------------------------------------------------------
Statistic p-value
------------------------------------------------------------------------------
Unadjusted t -33.8991
Adjusted t* -20.0280 0.0000
------------------------------------------------------------------------------