View source: R/specification.R
ets_modelspec | R Documentation |
Specifies an ETS model prior to estimation.
ets_modelspec( y, model = "AAN", damped = FALSE, power = FALSE, xreg = NULL, frequency = NULL, transformation = "box-cox", lambda = NULL, normalized_seasonality = TRUE, fixed_pars = NULL, scale = FALSE, seasonal_init = "fixed", lower = 0, upper = 1, sampling = NULL, xreg_init = TRUE, ... )
y |
an xts vector. |
model |
the type of model (based on the taxonomy in Hyndman) where the first letter denotes the type of error (E), the second letter the type of trend (T) and the third letter the type of seasonality (S). A value of N denotes none. Models supported are “AAA”, “AAN”, “ANN”, “ANA”, “MMM”, “MMN”, “MNN”, “MNM”, “MAM” and “MAN”. In addition, one may set model equal to “Theta”, which is equivalent to a “AAN” model with slope parameter (beta) fixed to zero. |
damped |
whether to include a damped trend. |
power |
whether to use the power model (only for multiplicative error with additive trend combination), i.e. the “MAM” and “MAN” models. |
xreg |
an optional xts matrix of regressors (pre-lagged). |
frequency |
the frequency of y (if using a seasonal model). |
transformation |
a valid transformation for y from the “tstransform” function in the “tsaux” package (currently box-cox or logit are available) applied to additive models only. |
lambda |
the Box Cox power parameter (lambda). If NA will estimate this using the method of Guerrero. |
normalized_seasonality |
whether to impose Roberts-McKenzie normalized seasonality. |
fixed_pars |
a named vector of valid parameter names with values which will be fixed rather than estimated. Valid values are as follows:
|
scale |
whether to rescale the data using y/max(y) (only for additive models). This sometimes helps in the optimization. |
seasonal_init |
whether the initial seasonal states are estimated or fixed (set to a backcast approximation). |
lower |
the lower bound for the transformation. |
upper |
the upper bound for the transformation. |
sampling |
sampling frequency of the dataset. If NULL, will try to identify from the timestamps of y. This is useful for plotting and extending the timestamps in the prediction horizon. |
xreg_init |
whether to find initial estimates for the regressors with tighter lower and upper bounds. This is only applicable for additive error models. |
... |
not used. |
The specification object holds the information and data which is then passed to the maximum likelihood estimation routines.
An object of class “tsets.spec”.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.