Fits om for each supplied occurrence type and returns the
model with the lowest information criterion.
auto.om(data, model = "ZXZ", lags = c(frequency(data)), orders = list(ar
= c(3, 3), i = c(2, 1), ma = c(3, 3), select = TRUE), formula = NULL,
regressors = c("use", "select", "adapt"), occurrence = c("fixed",
"odds-ratio", "inverse-odds-ratio", "direct", "general"), h = 0,
holdout = FALSE, persistence = NULL, phi = NULL,
initial = c("backcasting", "optimal", "two-stage", "complete", "gradient"),
arma = NULL, ic = c("AICc", "AIC", "BIC", "BICc"), bounds = c("usual",
"admissible", "none"), silent = TRUE, parallel = FALSE,
ets = c("conventional", "adam"), ...)The best om object (lowest IC), with $call set to
the auto.om() call and $timeElapsed recording wall time.
Numeric vector, time series, or data frame. Non-binary input is automatically binarised: any non-zero value becomes 1.
Three-letter ETS specification (wildcards "Z"/"X"/"Y" supported).
Vector of seasonal lags. Defaults to frequency(data).
ARIMA orders: list(ar, i, ma, select=TRUE/FALSE).
When select=TRUE, ARIMA orders are selected automatically for each
occurrence type.
Optional formula for external regressors.
How to handle regressors: "use", "select", or "adapt".
Character vector of occurrence link types to try:
"fixed", "odds-ratio", "inverse-odds-ratio", "direct".
Forecast horizon.
If TRUE, a holdout sample of size h is withheld.
Optional persistence (smoothing) parameter vector.
Optional damping parameter.
Initialisation method: "backcasting", "optimal",
"two-stage", or "complete".
Optional fixed ARMA parameters.
Information criterion used for selection.
Parameter bounds type.
If TRUE, suppresses progress messages and plots.
If TRUE (or a core count), fit occurrence types in
parallel. Requires foreach and doMC / doParallel.
ETS flavour passed to om: "conventional" or "adam".
Additional arguments forwarded to om.
om, auto.adam
set.seed(42)
y <- rbinom(120, 1, 0.6)
m <- auto.om(y, occurrence = c("fixed", "odds-ratio"))
Run the code above in your browser using DataLab