View source: R/combine_models_future.R
combine_models_future | R Documentation |
This function combines the three separate future forecasts for the low, mid and high frequency model. The three separate forecasts need to be run first and should have the same end_year.
combine_models_future(
longterm_future_predictions,
midterm_future_predictions,
shortterm_future_predictions,
longterm_model_number = 1,
data_directory = tempdir(),
verbose = FALSE
)
longterm_future_predictions |
Dataframe. The dataframe object resulting from function |
midterm_future_predictions |
Dataframe. The dataframe object resulting from function |
shortterm_future_predictions |
Dataframe. The dataframe object resulting from function |
longterm_model_number |
Integer. Specifies which of the 3 best long-term models should be used. |
data_directory |
The path to the directory where the results and plots will be saved. The default is set to a temporary directory. |
verbose |
A boolean value indicating if you want the generated plots to be shown (set to TRUE if yes). |
A list with the dataframe with the combined model results. And a list with the plotted results. The combined model predictions and plots are saved in the respective folder for the country.
A dataframe with the combined model results.
A list with the plot for the full timeseries, a plot with two sample weeks, and a stacked plot with both.
See also functions long_term_future
, mid_term_future
, and short_term_future
for the prediction models.
example_full_model_future_predictions <- combine_models_future(example_longterm_future_predictions,
example_midterm_future_predictions, example_shortterm_future_predictions,
longterm_model_number = 1
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.