Calculate forecast accuracy on test set according to a specified criterion
fcast_accuracy(
tslist,
models = c("ets", "arima", "rw", "rwd", "wn", "theta", "stlar", "nn", "snaive",
"mstlarima", "mstlets", "tbats"),
database,
accuracyFun,
h,
length_out,
fcast_save
)
a list with accuracy matrix, vector of arima models and vector of ets models
a list of time series
a vector of models to compute
whether the time series is from mcomp or other
function to calculate the accuracy measure, the arguments for the accuracy function should be training, test and forecast
forecast horizon
number of measures calculated by a single function
if the argument is TRUE, forecasts from each series are saved
Thiyanga Talagala