powered by
Construct table of AIC for all combinations 0<=p<=P and 0<=q<=Q
aicTable(data, P, Q, D = 0, ic = c("aic", "aicc"), ...)
A matrix containing the model AIC values.
a time series object, or a dataset that can be used as input into the arima function.
a positive integer value representing the maximum number of AR coefficients that should be included in the table.
a positive integer value representing the maximum number of MA coefficients that should be included in the table.
a positive integer value representing the degree of differencing
Information criterion to be used in the table.
Additional arguments passed to arima().
arima()
This function creates an AIC table for ARMA models of varying sizes. Each row for the table corresponds to a different AR value, and each column of the table corresponds to a different MA value.
set.seed(654321) aicTable(presidents, 3, 2)
Run the code above in your browser using DataLab