Repository navigation
Let eta and eta_RM vary over time - #1297
Draft
marcelolafleur wants to merge 4 commits into
Draft
marcelolafleur wants to merge 4 commits into
marcelolafleur wants to merge 4 commits into
Conversation
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.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1297 +/- ##
==========================================
+ Coverage 80.16% 80.22% +0.06%
==========================================
Files 24 24
Lines 7223 7245 +22
==========================================
+ Hits 5790 5812 +22
Misses 1433 1433
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
This was referenced Nov 24, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Government transfers and remittances are shared out across ages and income groups by
etaandeta_RM. Each was a single age-by-group matrix used in every year. When the population changes over the transition, a fixed matrix gives each age the same slice of the total however many people are in it, so each person's transfer drifts away from its intended profile. In OG-ETH, where the population ages fast, the poorest 85-year-olds ended up receiving about 11 times their intended transfer, and up to 80 times at 95.This lets both parameters take a path by year, like
omegaandrho. A single matrix is still accepted and held constant over time (as is the older year-by-age form ofeta_RM), so existing calibrations get the same parameters, bit for bit.Specificationsnow also warns when a year's shares do not add up to one, since households would then receive a different total than the aggregate.Tests check that both parameters accept either form and that a single matrix gives the same parameters as before. The CI test selection passes locally (872 passed).