| auto.om | R Documentation |
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"),
arma = NULL, ic = c("AICc", "AIC", "BIC", "BICc"), bounds = c("usual",
"admissible", "none"), silent = TRUE, parallel = FALSE,
ets = c("conventional", "adam"), ...)
data |
Numeric vector, time series, or data frame. Non-binary input is automatically binarised: any non-zero value becomes 1. |
model |
Three-letter ETS specification (wildcards |
lags |
Vector of seasonal lags. Defaults to |
orders |
ARIMA orders: |
formula |
Optional formula for external regressors. |
regressors |
How to handle regressors: |
occurrence |
Character vector of occurrence link types to try:
|
h |
Forecast horizon. |
holdout |
If |
persistence |
Optional persistence (smoothing) parameter vector. |
phi |
Optional damping parameter. |
initial |
Initialisation method: |
arma |
Optional fixed ARMA parameters. |
ic |
Information criterion used for selection. |
bounds |
Parameter bounds type. |
silent |
If |
parallel |
If |
ets |
ETS flavour passed to om: |
... |
Additional arguments forwarded to om. |
The best om object (lowest IC), with $call set to
the auto.om() call and $timeElapsed recording wall time.
om, auto.adam
set.seed(42)
y <- rbinom(120, 1, 0.6)
m <- auto.om(y, occurrence = c("fixed", "odds-ratio"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.