View source: R/mid_term_future.R
mid_term_future | R Documentation |
This function extends the mid-term demand predictions generated by mid_term_lm
until a specified future year.
The unknown temperature-based covariates for future days are obtained by averaging over the past 3 years of the dataset.
The function also produces and saves visualizations of the actual and the predicted demand over the training, test, and future periods.
mid_term_future(
midterm_predictions,
end_year,
Tref = 18,
data_directory = tempdir(),
midterm_model = NULL,
verbose = FALSE
)
midterm_predictions |
Dataframe or list. Generated by |
end_year |
Integer. Specifies the final year for which future predictions will be generated. |
Tref |
Numeric. Reference temperature as basis for the calculation of cooling and heating days. |
data_directory |
The path to the directory where the data will be saved and where the function will look for
the mid-term model from |
midterm_model |
The mid-term seasonality model from |
verbose |
A boolean value indicating if you want the generated plot to be shown (set to TRUE if yes). |
A list with the extended initial dataframe with the future predictions for the mid term model. And the plot with the midterm 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 mid-term seasonality.
A plot with the prediction results.
See also function long_term_future
and short_term_future
for the other prediction models.
example_midterm_future_predictions <- mid_term_future(example_midterm_predictions,
end_year = 2028, Tref = 18
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.