powered by
Compute the AIC and BIC criteria for lags from 1 to q.max
AicBic(mat.y, q.max, mat.x = NULL, trend = FALSE, intercept = TRUE)
A data frame object that contains all AIC (first row) and BIC (second row) for all the q.max lags tested.
A matrix object of time series
The maximum lag considered
An optional matrix of covariates
If a trend is considered (default to false)
If the test is on the intercept (default to true)
data(example_data) aic.bic <- AicBic(mat.y = example_data, q.max = 2, trend = FALSE, intercept = TRUE)
Run the code above in your browser using DataLab