powered by
ADF calculates the augmented Dickey-Fuller (ADF) test statistic with lag order set fixed or selected by AIC or BIC.
ADF
ADF(y, IC = 0, adflag = 0)
A vector, The data.
An integer. 0 for fixed lag (default) order 1 for AIC and 2 for BIC (default = 0).
An integer. Lag order when IC=0; maximum number of lags when IC>0 (default = 0).
Numeric, ADF test statistic.
Said, S. E., & Dickey, D. A. (1984). Testing for Unit Roots in ARMA Models of Unknown Order. Biometrika, 71(1984), 599--607.
# NOT RUN { y <- rnorm(100) tstat <- ADF(y, IC = 0, adflag = 1) # }
Run the code above in your browser using DataLab