get_macro_economic_data: Load a list of macroeconomic data from WDI

View source: R/get_macro_economic_data.R

get_macro_economic_dataR Documentation

Load a list of macroeconomic data from WDI

Description

This function downloads a set of ten macroeconomic variables via API from the World Development Indicators (WDI) of the World Bank (https://databank.worldbank.org/source/world-development-indicators). The variables are suspected to have a predictive capacity for the load data.

Usage

get_macro_economic_data(longterm_data)

Arguments

longterm_data

The long-term data series resulting from the function decompose_load_data. Contains information on country (longterm$country) and years (longterm$year).

Value

Data frame with the original time series and 10 additional columns with macroeconomic indicators.

See Also

See function decompose_load_data for the generation of the long-term series and long_term_lm for the selection of covariates.

Examples

example_longterm_and_macro_data <- get_macro_economic_data(example_longterm_data)
print("Macro economic variables are added from the World Bank Developer Indicators:")
example_longterm_and_macro_data


oRaklE documentation built on June 8, 2025, 12:41 p.m.