Skip to content

Add net family transfers between households - #1298

Open
marcelolafleur wants to merge 9 commits into
PSLmodels:masterfrom
marcelolafleur:family-transfers
Open

marcelolafleur wants to merge 9 commits into
PSLmodels:masterfrom
marcelolafleur:family-transfers

Conversation

@marcelolafleur

@marcelolafleur marcelolafleur commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Builds on #1297; its commits come first, and the new work is the family-transfer commits.

Problem. In many low-income countries older people live on support from their children. In OG-Core each household lives off its own budget, so in OG-ETH people over 65 consumed far less than prime-age adults and kept working long past what surveys show.

What this adds

  • phi_FT: net family transfers as a share of GDP, by age and income group; positive for those who receive support, negative for those who give it.
  • Each year's shares must sum to zero (checked in Specifications), so the transfers only move resources between households: aggregate resources and the government budget are unchanged.
  • They reach households next to remittances, in the steady state and on the time path; new output variable ft.
  • Default zero: nothing changes unless a calibration sets it. With the default, the steady state is identical, bit for bit, to master.
  • Docs: a new section in the households chapter; the budget constraint and its stationarized form include the transfers.

In OG-ETH (EAPD-DRB/OG-ETH#111), working-age adults support older people, with the transfers fitted so that consumption per adult by age follows its target. The figure compares OG-ETH's calibration just before family transfers were added with the adopted one (other parts of the calibration also changed between the two):

Consumption and hours by age in OG-ETH, before and after family transfers

Consumption by age now follows its target, and older people work less, though still more than the surveys show from about 70.

Tests. The transfers net to zero in the steady state and in every year of the path, they are added only when turned on, and shares that do not sum to zero are rejected. The household and parameter tests pass locally (118 passed).

Government transfers are shared out by eta, held at one age-by-group
matrix in every year. As the population ages, each person's transfer
then drifts away from its intended profile. eta now takes a
(T+S) x S x J path, like omega and rho. An S x J matrix is still
accepted and held constant over time, so existing inputs give the
same model parameters, bit for bit.
…o one

Remittances are shared out by eta_RM the same way transfers are shared
out by eta, so it gets the same (T+S) x S x J path. Older 2-D inputs,
S x J or T x S, give the same model parameters as before. A warning
now flags any period where eta or eta_RM does not sum to one, since
households would then receive a different total than the aggregate.
Households can now pass resources to each other, such as working-age
children supporting their parents. phi_FT gives, for each period, age
and ability type, the net transfer received as a share of GDP; each
period must sum to zero, so aggregate resources, revenue and the
government budget are unchanged. The transfers reach the household
budget next to remittances, outside taxes and government transfers.
Off (zero) by default, which leaves every result as it was.
@codecov-commenter

codecov-commenter commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.22034% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.24%. Comparing base (aa6c019) to head (df91d75).

Files with missing lines Patch % Lines
ogcore/TPI.py 57.14% 3 Missing ⚠️
ogcore/parameters.py 96.96% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1298      +/-   ##
==========================================
+ Coverage   80.16%   80.24%   +0.08%     
==========================================
  Files          24       24              
  Lines        7223     7279      +56     
==========================================
+ Hits         5790     5841      +51     
- Misses       1433     1438       +5     
Flag Coverage Δ
unittests 80.24% <93.22%> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
ogcore/SS.py 92.30% <100.00%> (-0.16%) ⬇️
ogcore/__init__.py 100.00% <100.00%> (ø)
ogcore/household.py 91.35% <100.00%> (+0.36%) ⬆️
ogcore/parameters.py 91.36% <96.96%> (+0.50%) ⬆️
ogcore/TPI.py 81.22% <57.14%> (-0.27%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

marcelolafleur added a commit to marcelolafleur/OG-ETH that referenced this pull request Nov 25, 2026
…and patience set by saving within the return evidence

Net family transfers (phi_FT, PSLmodels/OG-Core#1298) are fitted so that consumption
per adult by age follows a consumption-by-age target: private consumption by age that
the National Transfer Accounts of 70 countries predict for Ethiopia's income and age
structure, with the consumption of people under 20 carried by the adults who support
them (ogeth/data/consumption_by_age.csv).

The discount factor is a constant, 0.94: as much household saving as keeps the owners'
long-run return on capital at the bottom of the return evidence, 6 percent. Capital
builds up from the measured stock and the firms' return reaches the 4 percent world
rate by about 2035. Dials, scales and the warm-start seed refolded; RC_TPI 0.003 for
OG-Core's period-120 population switch. The dashboard counts consumption including the
subsistence floor.
@marcelolafleur
marcelolafleur marked this pull request as ready for review November 25, 2026 22:47
@marcelolafleur

Copy link
Copy Markdown
Contributor Author

Ready for review. One note on versions: this PR sets 0.25.5 on the assumption that #1279 (0.25.3) and #1297 (0.25.4) merge first. If they go in another order, I'll renumber.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants