| omg | R Documentation |
Fits two parallel ETS occurrence models (A: odds-ratio, B: inverse-odds-ratio)
jointly using a shared Bernoulli log-likelihood. The combined probability
at each time point is p_t = p_{At} / (p_{At} + p_{Bt}).
omg(data, modelA = "MNN", modelB = modelA, ordersA = list(ar = c(0), i =
c(0), ma = c(0), select = FALSE), ordersB = ordersA, constantA = FALSE,
constantB = constantA, formulaA = NULL, formulaB = formulaA,
regressorsA = c("use", "select", "adapt"), regressorsB = regressorsA,
persistenceA = NULL, persistenceB = persistenceA, phiA = NULL,
phiB = phiA, armaA = NULL, armaB = armaA, etsA = c("conventional",
"adam"), etsB = etsA, lags = c(frequency(data)), h = 0,
holdout = FALSE, initial = c("backcasting", "optimal", "two-stage",
"complete"), loss = c("likelihood", "MSE", "MAE", "HAM", "LASSO", "RIDGE"),
ic = c("AICc", "AIC", "BIC", "BICc"), bounds = c("usual", "admissible",
"none"), model = NULL, silent = TRUE, ...)
data |
Binary time series (0/1), vector or data frame. |
modelA |
ETS model string for model A (default |
modelB |
ETS model string for model B (default |
ordersA |
ARIMA orders list for model A. |
ordersB |
ARIMA orders list for model B. |
constantA |
Logical, include constant in model A. |
constantB |
Logical, include constant in model B. |
formulaA |
Formula for exogenous variables in model A. |
formulaB |
Formula for exogenous variables in model B. |
regressorsA |
How to handle regressors in model A. |
regressorsB |
How to handle regressors in model B. |
persistenceA |
Persistence vector for model A. |
persistenceB |
Persistence vector for model B. |
phiA |
Damping parameter for model A. |
phiB |
Damping parameter for model B. |
armaA |
ARMA parameters for model A. |
armaB |
ARMA parameters for model B. |
etsA |
ETS variant for model A ( |
etsB |
ETS variant for model B. |
lags |
Seasonal lags (shared). |
h |
Forecast horizon. |
holdout |
If |
initial |
Initialisation method (shared). |
loss |
Loss function (shared). |
ic |
Information criterion (shared). |
bounds |
Parameter bounds type (shared). |
model |
An already-fitted |
silent |
If |
... |
Additional arguments passed to the optimiser. |
An object of class c("omg","om","smooth").
om, forecast.omg
set.seed(41)
y <- rpois(100, 0.5)
m <- omg(y)
forecast(m, h=10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.