This function computes AIC, FPE, BIC, and HQ up to p = lag_max
of VAR model.
choose_var(y, lag_max = 5, include_mean = TRUE, parallel = FALSE)
Minimum order and information criteria values
Time series data of which columns indicate the variables
Maximum Var lag to explore (default = 5)
Add constant term (Default: TRUE
) or not (FALSE
)
Parallel computation using foreach::foreach()
? By default, FALSE
.