powered by
Selection of the cointegrating rank and the lags with Information criterion (AIC, BIC).
lags.select(data, lag.max = 10, include = c("const", "trend", "none", "both"), fitMeasure = c("SSR", "LL"), sameSample = TRUE)
multivariate time series.
Maximum number of lags to investigate.
Type of deterministic regressors to include.
Whether the AIC/BIC should be based on the full likelihood, or just the SSR. See explanations in logLik.VECM.
logLik.VECM
Logical. Whether the data should be shortened so that the AIC/BIC are estimated on the same sample. Default to TRUE.
An object of class rank.select, with ‘print’ and ‘summary methods’, containing among other the matrices of AIC/BIC/HQ.
rank.select
This function selects the lag according to AIC, BIC and Hannan-Quinn.
rank.select, the underlying function, to estimate the rank also.
VARselect in package vars, does basically the same.
VARselect
# NOT RUN { data(barry) # rk_sel <- lags.select(barry) rk_sel summary(rk_sel) # }
Run the code above in your browser using DataLab