It uses an object of class utsf
to asses the forecasting accuracy of its
associated model on its associated time series applying a rolling origin
evaluation.
efa(model, h, type = c("normal", "minimum"), size = NULL, prop = NULL)
A list with four components:
per_horizon
A matrix with the estimated forecast accuracy per forecasting horizon using several forecasting accuracy measures.
global
The average estimated forecast accuracy for all the horizons. It is computed as the mean
of the different rows of the per_horizon
component.
test_sets
A matrix with the test sets used in the evaluation. Each row of the matrix is a test set.
predictions
The predictions for the test sets.
An object of class utsf
with a model trained with a time
series.
A positive integer. The forecasting horizon.
A string. Possible values are "normal"
(the default) and
"minimum"
. See the vignette utsf for an explanation of both ways
of evaluating forecast accuracy.
An integer. It is the size of the test set (how many of the last
observations of the time series are used as test set). It can only be used
when the type parameter is "normal"
. By default, it is the length of the
forecasting horizon.
A numeric value in the range (0, 1). It is the proportion of the
time series used as test set. It can only be used when the type parameter is
"normal"
.
m <- create_model(UKgas, lags = 1:4, method = "rt")
efa(m, h = 4, type = "normal", size = 8)
Run the code above in your browser using DataLab