View source: R/short_term_future.R
short_term_future | R Documentation |
This function extends the short-term demand predictions generated by short_term_lm
until a specified future year.
The function also produces and saves visualizations of the actual and the predicted demand over the training, test, and future periods.
short_term_future(
shortterm_predictions,
end_year,
data_directory = tempdir(),
model_list = NULL,
verbose = FALSE
)
shortterm_predictions |
Dataframe. Generated by |
end_year |
Integer. Specifies the final year for which future predictions will be generated |
data_directory |
The path to the directory where the data will be saved and where the function will look for
the short-term models from |
model_list |
A list with the models from |
verbose |
A boolean value indicating if you want the generated plots to be shown (set to TRUE if yes). |
The extended initial dataframe with the future predictions for the short term model.
A list with the extended initial dataframe with the future predictions for the short term model. And the plot with the shortterm seasonality future forecast. The dataset and the plot are saved in the respective folder for the country.
A dataframe with the input and prediction data for the future short-term seasonality.
A plot with the prediction results.
See also function long_term_future
and mid_term_future
for the other prediction models.
example_shortterm_future_predictions <- short_term_future(example_shortterm_predictions,
end_year = 2028
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.