View source: R/lag_selection.R
| select_lags_ic | R Documentation |
Selects the optimal VAR lag order using information criteria (AIC, BIC, or HQ).
select_lags_ic(data, max_lags, ic = "aic")
data |
Data matrix (T x n). |
max_lags |
Maximum lag order to consider. |
ic |
Information criterion: |
A list containing:
Optimal lag order.
Data frame of IC values for each lag.
Akaike, H. (1974). A New Look at the Statistical Model Identification. IEEE Transactions on Automatic Control, 19(6), 716-723. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1109/TAC.1974.1100705")}
Schwarz, G. (1978). Estimating the Dimension of a Model. The Annals of Statistics, 6(2), 461-464. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1214/aos/1176344136")}
Hannan, E. J., & Quinn, B. G. (1979). The Determination of the Order of an Autoregression. Journal of the Royal Statistical Society: Series B, 41(2), 190-195. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1111/j.2517-6161.1979.tb01072.x")}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.