- y
A numeric vector or time series.
- models
A character string of up to seven characters indicating which contributing
models to use:
a (auto.arima), e (ets),
f (thetam), n (nnetar),
s (stlm), t (tbats),
and z (snaive).
- lambda
Box-Cox transformation parameter.
Ignored if NULL. Otherwise, data transformed before model is estimated.
- a.args
an optional list of arguments to pass to auto.arima.
See details.
- e.args
an optional list of arguments to pass to ets.
See details.
- n.args
an optional list of arguments to pass to nnetar.
See details.
- s.args
an optional list of arguments to pass to stlm.
See details.
- t.args
an optional list of arguments to pass to tbats.
See details.
- x.args
an optional list of arguments to pass to arfima.
See details.
- z.args
an optional list of arguments to pass to snaive.
See details.
- weights
method for weighting the forecasts of the various contributing
models. Defaults to equal, which has shown to be robust and better
in many cases than giving more weight to models with better in-sample performance.
Cross validated errors--implemented with link{cvts}
should produce the best forecast, but the model estimation is also the slowest. Note that
extra arguments passed in a.args, e.args, n.args, s.args,
x.args, and t.args are not used during cross validation. See further explanation
in cvts.
Weights utilizing in-sample errors are also available but not recommended.
- errorMethod
method of measuring accuracy to use if weights are not
to be equal.
Root mean square error (RMSE), mean absolute error (MAE)
and mean absolute scaled error (MASE)
are supported.
- rolling
If weights = "cv.errors", this controls the use of rolling cross validation
in cvts()
- cvHorizon
If weights = "cv.errors", this controls which forecast to horizon to use
for the error calculations.
- windowSize
length of the window to build each model, only used when
weights = "cv.errors".
- horizonAverage
If weights = "cv.errors", setting this to TRUE will average
all forecast horizons up to cvHorizon for calculating the errors instead of using
the single horizon given in cvHorizon.
- parallel
a boolean indicating if parallel processing should be used between models.
Parallelization will still occur within individual models that support it and can be controlled
using a.args and t.args.
- num.cores
If parallel=TRUE, how many cores to use.
- verbose
Should the status of which model is being fit/cross validated be printed
to the terminal?