Description Usage Arguments Value Examples
Apply a chosen forecast model to a time series object. Basically a wrapper for many functions from the forecast package. Please run available_models() to see the list of available modes to use as the model.name argument of this function.
1 | apply_selected_model(x, model_name, horizon)
|
x |
A ts object. |
model_name |
A string indicating the name of the forecast model. |
horizon |
the forecast horizon length |
A forecast object
1 2 3 4 | ## Not run:
apply_selected_model(AirPassengers, "auto.arima", 6)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.