Macro Parameter Estimation Functions#
macro_params.py modules
ogphl.macro_params#
This module uses data from World Bank WDI, the IMF, and UN ILO to find values for parameters for the OG-PHL model that rely on macro data for calibration.
- ogphl.macro_params.get_macro_params(data_start_date=datetime.datetime(1947, 1, 1, 0, 0), data_end_date=datetime.datetime(2023, 1, 1, 0, 0), country_iso='PHL', update_from_api=False, imf_data_path=None)[source]#
Compute values of parameters that are derived from macro data.
- Parameters:
data_start_date (datetime) – start date for data
data_end_date (datetime) – end date for data
country_iso (str) – ISO code for country
update_from_api (bool) – Set True to pull updated macro data
imf_data_path (str | Path | None) – optional path to save IMF CSV data
- Returns:
dictionary of parameter values
- Return type:
macro_parameters (dict)