Macro Parameter Estimation Functions

Macro Parameter Estimation Functions#

macro_params.py modules

ogphl.macro_params#

Macro parameters for the OG-PHL model.

Most OG-PHL macro parameters are documented, point-in-time Philippine values held in the packaged default-parameter JSON. Only a parameter whose documented source is genuinely a live API is refreshed here when update_from_api=True; the rest stay in the JSON so a live update cannot clobber a value we source elsewhere. In particular the IMF GFS and World-Bank external-debt calls are NOT used: the values they overwrote come from other sources (World Bank WDI, DBM budget tables, the Bureau of the Treasury), and the IMF GFS social-benefit series is zero for the Philippines, which set alpha_T=0 and broke the steady-state solve. Demographics stay live (UN) in ogphl.calibrate.

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]#

Return macro-parameter overrides for the OG-PHL calibration.

Only g_y_annual is refreshed from a live API – World Bank GDP-per-capita growth over the pre-pandemic 2000-2019 window, its documented source. Every other macro parameter is held in the packaged JSON and is NOT pulled here, so a live update cannot clobber a value sourced elsewhere:

  • alpha_T – World Bank WDI (not the IMF GFS series,

    which is 0 for PH)

  • alpha_G – DBM BESF FY2026, Table A2 (not an API)

  • initial_foreign_debt_ratio, zeta_D, initial_debt_ratio – Bureau of the

    Treasury (not an API)

  • gamma – ILOSTAT-based private capital share,

    frozen at the documented 0.53785 (0.588 total, less gamma_g=0.05)

  • r_gov_shift, r_gov_scale – IMF / Li et al. (2021), frozen at the

    recentered documented values

Returns:

macro-parameter overlay (only g_y_annual when update_from_api and the World Bank call succeeds)

Return type:

dict