R/ts_forecast.R
morie_ts_select.Rd
Select ARIMA orders by information criterion
morie_ts_select(x, max_p = 3L, max_q = 3L, d = NULL, ic = c("aic", "bic"))
A numeric series or morie_ts.
morie_ts
Maximum non-seasonal AR / MA orders to search.
Differencing order (default: the stationarity suggestion).
"aic" or "bic".
A list with the full results table and the best model (a fitted morie_ts_model).
results
best
morie_ts_model
morie_ts_select(cumsum(rnorm(80)), max_p = 2, max_q = 2)$best$order #> [1] 0 1 1