Macro Parameter Estimation Functions#
macro_params.py modules
ogzaf.macro_params#
This module uses data from World Bank WDI, World Bank Quarterly Public Sector Debt (QPSD) database, the IMF, and UN ILO to find values for parameters for the OG-ZAF model that rely on macro data for calibration.
- ogzaf.macro_params.get_macro_params(data_start_date=datetime.datetime(1947, 1, 1, 0, 0), data_end_date=datetime.datetime(2024, 12, 31, 0, 0), country_iso='ZAF', update_from_api=False, imf_data_year=None, 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
imf_data_year (int | None) – IMF target year override. Defaults to data_end_date.year when None.
imf_data_path (str | Path | None) – optional path to save IMF CSV data
- Returns:
dictionary of parameter values
- Return type:
macro_parameters (dict)