> aab1<-resid(aa1)
> retPadf<-adf.test(aab1)
> retPadf
Augmented Dickey-Fuller Test
data: aab1
Dickey-Fuller = -2.9876, Lag order = 21, p-value = 0.16
alternative hypothesis: stationary
>
>
> ur<-ur.df(aab1,type="none")
> summary(ur)
###############################################
# Augmented Dickey-Fuller Test Unit Root Test #
###############################################
Test regression none
Call:
lm(formula = z.diff ~ z.lag.1 - 1 + z.diff.lag)
Residuals:
Min 1Q Median 3Q Max
-0.0091598 -0.0005151 0.0000096 0.0005293 0.0203194
Coefficients:
Estimate Std. Error t value Pr(>|t|)
z.lag.1 -0.0035302 0.0009687 -3.644 0.00027 ***
z.diff.lag -0.2824573 0.0096931 -29.140 < 2e-16 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 0.0009542 on 9788 degrees of freedom
Multiple R-squared: 0.08209, Adjusted R-squared: 0.0819
F-statistic: 437.7 on 2 and 9788 DF, p-value: < 2.2e-16
Value of test-statistic is: -3.6442
Critical values for test statistics:
1pct 5pct 10pct
tau1 -2.58 -1.95 -1.62
同样的单位根检验,一个做出来是不平稳的一个做出来是平稳的


雷达卡


京公网安备 11010802022788号







