| oes | R Documentation |
Wrapper of om that fits an occurrence (probability) ETS
model to a univariate intermittent time series. ARIMA components, ARMA
parameters, and explanatory-variable formulas are disabled (orders,
arma, formula are all forced to NULL); use
om directly if those features are needed.
oes(y, model = "MNN", lags = c(frequency(y)), persistence = NULL,
phi = NULL, initial = c("backcasting", "optimal", "two-stage",
"complete"), occurrence = c("auto", "fixed", "odds-ratio",
"inverse-odds-ratio", "direct", "general"), ic = c("AICc", "AIC", "BIC",
"BICc"), h = 0, holdout = FALSE, bounds = c("usual", "admissible",
"none"), ets = c("conventional", "adam"), xreg = NULL,
regressors = c("use", "select"), silent = TRUE, ...)
y |
Univariate numeric vector or time-series. Non-binary input is binarised (any non-zero value becomes 1). |
model |
Three-letter ETS specification (e.g. |
lags |
Vector of seasonal lags. Defaults to |
persistence |
Optional persistence (smoothing) parameter vector. |
phi |
Optional damping parameter. Only used for damped-trend models. |
initial |
Initialisation method: |
occurrence |
Type of link function mapping the state to a
probability: |
ic |
Information criterion for model selection. |
h |
Forecast horizon. |
holdout |
If |
bounds |
Parameter bounds type. |
ets |
Type of ETS model: |
xreg |
Optional numeric vector or matrix of exogenous regressors, aligned
with |
regressors |
How to handle regressors: |
silent |
If |
... |
Additional arguments forwarded to om (e.g.
|
This is the analogue of es for occurrence models: a lightweight ETS-only entry point that delegates the heavy lifting to om.
An object of class c("om","adam","smooth").
om, es
set.seed(42)
y <- rbinom(120, 1, 0.6)
m <- oes(y, model="MNN", occurrence="odds-ratio")
forecast(m, h=12)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.