powered by
select_forecast is the main function of this package. It uses apply_all_models() and other internal functions of this package to generate generate multiple forecasts for the same time series object.
select_forecast(x, test_size, horizon, error, dont_apply = "", verbose = FALSE)
A ts object.
The desired length of the test set object to be used to measure the accuracy of the forecast models.
The forecast horizon length
The accuracy metric to be used to select the best forecast model from apply_all_models(). See error_metrics() for the available metrics.
Character vector. Choose one or more models that will not be used on select_forecast().
logical. Set TRUE if you want mafs to tell you what models are running.
A list of three objects:
A data.frame with the accuracy metrics of all models applied to x
A forecast object created by applying the best forecast method to x
A dataframe showing both the forecasted and the observed test set
TODO
# NOT RUN { select_forecast(austres, 6, 12, "MAPE") # }
Run the code above in your browser using DataLab