long_term_future_data {oRaklE} | R Documentation |
Get future predictions for the macro economic covariates
Description
This function gets predictions from the World Economic Outlook Database (April 2025 edition) for the covariates utilized in the long-term models. If the dataset argument is not set to "WEO",
the function will indicate which covariates require user-supplied predictions for long_term_future
.
Usage
long_term_future_data(
longterm_predictions,
end_year,
dataset = "WEO",
data_directory = tempdir(),
model_list = NULL
)
Arguments
longterm_predictions |
Dataframe or list. Generated by |
end_year |
Integer. Specifies the final year for which future predictions will be generated. |
dataset |
Character. By default the World Economic Outlook (WEO) Database April 2025 edition is used to generate covariate predictions for the long term models. If the dataset option is set to anything else than "WEO" the function will tell you for which covariates data will be needed to run |
data_directory |
The path to the directory where the function will look for
the long-term models from |
model_list |
A list with the models from |
Value
The extended initial dataframe until the specified end year with the covariate predictions if dataset = "WEO" . Otherwise, the dataframe will have empty covariate predictions and a note for which covariates a forecast must be supplied.
Examples
example_longterm_future_macro_data <- long_term_future_data(example_longterm_predictions,
end_year = 2028, dataset = "WEO"
)