Skip to content

Add net family transfers between households - #1298

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

marcelolafleur wants to merge 7 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 last two.

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 about half of what prime-age adults consume (Ethiopia's National Transfer Accounts show about 85 percent) 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.
  • Docs: a new section in the households chapter; the budget constraint and its stationarized form include the transfers.

OG-ETH example (working-age adults in each income group support that group's elders)

Net family transfers by age, Ethiopia
Without With Data
Consumption 65–69 (relative to ages 30–49) 0.56 0.88 0.87
Consumption 70–79 0.48 0.91 0.84
Consumption 80–85 0.41 0.87 0.80
Hours per week, 70–79 16.2 12.7 9.3
Hours per week, 80–89 16.9 12.1 5.3

"Without" is the previous OG-ETH calibration. Data: NTA (2005), labour force and panel surveys (2021, 2021/22). Used by EAPD-DRB/OG-ETH#111.

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 full suite passes locally (954 passed), except one tax-function estimation test that crashes a worker process on my machine; it fails the same way without these changes.

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 (8789124).

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.

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