Repository navigation
Add government debt contracted abroad at its own interest rate - #1279
marcelolafleur wants to merge 5 commits into
Conversation
…and flows, the budget in every period, and the resource constraint along the path
…_annual), price the debt premium on all government debt, report total debt, and document the new outputs
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1279 +/- ##
==========================================
+ Coverage 79.68% 79.70% +0.02%
==========================================
Files 24 24
Lines 6762 6785 +23
==========================================
+ Hits 5388 5408 +20
- Misses 1374 1377 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Recalibrates the single-industry model to Philippine data and checks it against the government's fiscal program. - Model ratios are compared with GDP at market prices, the basis the data use; shares OG-Core applies to its own output are converted to match. - Capital, saving, hours, earnings and starting wealth match Philippine data: measured depreciation, the ILO capital share, saving and foreign capital tuned to 2025, hours from the Labor Force Survey, the NTA age shape of earnings and of initial wealth, the 2023 income Gini, and income gradients in fertility and mortality. - Taxes match collections by instrument. Pensions follow the SSS defined-benefit rules and phase in from today's spending. Spending follows the 2025-2028 fiscal program, then holds debt near 60% of GDP. - The government's external debt (19.4% of GDP) is modelled as debt contracted abroad at its own rate (2.44% real), not as market debt paid the household return. Market debt is the domestic debt, 4.2% held by non-residents, and the government rate is anchored to the domestic rate (2.33% real). - The example makes no live data calls, and the steady state starts from a shipped solved state. Adds a steady-state tuning script and a sourced dashboard of targets. - uv installs OG-Core from master plus PSLmodels/OG-Core#1279, #1280, #1276 and #1277 until they are released; a full run takes about 9 minutes.
arihantlodha-cmd
left a comment
There was a problem hiding this comment.
This is a really useful addition, and the OG-ETH table makes the case well. I checked get_D_ext against the market-debt flows in D_G_path, and the g_n[: p.T] indexing matches. One question about the steady state. With the stock pinned at alpha_D_ext * Y, the government gets (g_n + g_y) * D_ext in new borrowing each period and pays r_ext * D_ext. When r_D_ext is below the growth rate, which is the concessional case, that's a permanent net inflow from abroad in the long run. That's probably right for official lending that gets rolled over, but would it be worth a note in the parameter description, or a warning when r_D_ext[-1] is below growth? Otherwise users might not realize that their long-run budget is partly financed by it. Separately, this PR and #1280 both bump the version (0.25.0 vs 0.24.5), so the CHANGELOG will need reconciling depending on which merges first.
# Conflicts: # CHANGELOG.md # ogcore/__init__.py # pyproject.toml # tests/test_TPI.py # uv.lock
This PR addresses Issue #1125 by adding government debt contracted abroad, such as concessional loans from official lenders or bonds issued abroad, held only by foreigners and paying its own interest rate rather than the household portfolio return.
Adds
alpha_D_ext(the stock as a share of GDP) andr_D_ext_annual(its real interest rate), both default 0. The debt enters the government budget, the closure rule and the resource constraint; it is not part of households' portfolio, sodebt_ratio_ssandzeta_Dkeep referring to market debt.fiscal.get_D_extand the outputsD_ext,new_borrowing_extanddebt_service_ext.local) with external debt that keep the budget and the goods market in balance every period.Updates
r_govis evaluated at all government debt, market plus external. Total debt is also reported in the macro table and calibration moments. Both are unchanged whenalpha_D_extis 0.Example: OG-ETH, first year (FY2024/25), percent of GDP
Same calibration, with Ethiopia's external debt (15.5 percent of GDP, mostly concessional) held as market debt abroad (off) or as debt contracted abroad at its own rate (on):
cc: @jdebacker @rickecon