View source: R/long_term_future_data.R
long_term_future_data | R Documentation |
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
.
long_term_future_data(
longterm_predictions,
end_year,
dataset = "WEO",
data_directory = tempdir(),
model_list = NULL
)
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 |
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.
example_longterm_future_macro_data <- long_term_future_data(example_longterm_predictions,
end_year = 2028, dataset = "WEO"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.