|
执行帮助里面的例子,都没有问题。
检查看看你的stata11是否都升级完全了。
主程序和ado文件。 有时候没有升级会有问题的。
. webuse pennxrate
. xtunitroot ht lnrxrate, demean
Harris-Tzavalis 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 -> Infinity
Panel means: Included T Fixed
Time trend: Not included Cross-sectional means removed
------------------------------------------------------------------------------
Statistic z p-value
------------------------------------------------------------------------------
rho 0.8184 -13.1239 0.0000
------------------------------------------------------------------------------
. xtunitroot llc lnrxrate if oecd, demean lags(aic 10) kernel(bartlett nwest)
Levin-Lin-Chu unit-root test for lnrxrate
-----------------------------------------
Ho: Panels contain unit roots Number of panels = 27
Ha: Panels are stationary Number of periods = 34
AR parameter: Common Asymptotics: N/T -> 0
Panel means: Included
Time trend: Not included Cross-sectional means removed
ADF regressions: 1.33 lags average (chosen by AIC)
LR variance: Bartlett kernel, 3.63 lags average
(chosen by Newey-West)
------------------------------------------------------------------------------
Statistic p-value
------------------------------------------------------------------------------
Unadjusted t -13.0033
Adjusted t* -2.4486 0.0072
------------------------------------------------------------------------------
|