Description Usage Arguments Details Value
View source: R/ensemble_base.R
This function fits six simple univariate forecast models to the series and calculates weights that minimise the mean absolute scaled error of a weighted ensemble forecast
1 2 3 4 5 6 7 8 | ensemble_base(
y,
frequency,
lambda = NULL,
k = 1,
bottom_series = FALSE,
discrete = FALSE
)
|
y |
A |
frequency |
The seasonal frequency of |
lambda |
|
k |
|
bottom_series |
|
discrete |
|
A total of seven simple univariate models are tested on the series. These include
stlf
with an AR model for the seasonally-adjusted series,
ets
,
auto.arima
,
auto.arima
with fourier terms K = 4
regressors,
rwf
with drift,
naive
and
snaive
.
The mean absolute scaled error (MASE) of the in-sample
series is calculated for each series, and a weighted mean is optimised to
minimise in-sample MASE using the "L-BFGS-B" algorithm in optim
.
A list
object containing the ensemble forecast and the ensemble residuals
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.