Incorrect lagged income quintiles after benefit-unit changes
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 45/100
Piste de recherche
Start with Person.getYHhQuintilesMonthC5L1() in src/main/java/simpaths/model/Person.java, the Q2–Q5 dummy getters, and new benefit unit initialization in src/main/java/simpaths/model/BenefitUnit.java. Trace how a person's benefit unit changes and decide how individual lagged quintile history should be retained, including how missing history is handled. Add focused checks for unchanged membership, a new unit at age 18, and partnership formation between people with different quintiles.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Coding problem
A person's lagged income quintile should describe the benefit unit they belonged to in the previous period. Instead, Person.getYHhQuintilesMonthC5L1() reads the lag stored on their current benefit unit:
return benefitUnit.getYHhQuintilesMonthC5L1();
When someone forms a new benefit unit, for example on turning 18 or forming a partnership, that unit may have no previous-period quintile. The Q2-Q5 dummy getters then all return zero, silently applying the Q1 reference-category coding. This is not evidence that the person was previously in Q1.
The new-unit initialisation supplies Q3 for a missing current quintile, but does not restore the person's previous quintile.
Verification
In a clean build of develop at 11bec2bd9 (23 October), an isolated getter test returned:
- Original benefit unit with lagged Q5: Q5.
- Membership changed to a new unit without history: null, with all Q2-Q5 dummy values 0.
- Destination unit given lagged Q2: Q2, rather than the person's original Q5.
The same behaviour occurs in the saved income-validation JAR. These checks establish the getter problem; they do not measure its population frequency or aggregate effect on predictions.
Proposed coding repair
The approach discussed was to preserve each person's BU income quintile at the individual level before membership changes, and use that stored previous-period value for the lagged regressor. Two people forming a couple could then correctly retain different lagged quintiles. Retaining the previous BU link and its historical value is an alternative.
A focused test would check unchanged membership, a new BU at age 18, and partnership formation between people from different quintiles. Missing history would also need explicit handling rather than silently becoming the reference category. This repair preserves the meaning of the existing regressor; it does not itself require replacing it with parental income.
Separate education-specification question
Even with the coding repair, a student may subsequently have low own-BU income while still living with well-off parents. Whether E1a should instead use parental income, and how E1b should distinguish own from parental resources, is a separate specification decision requiring consistent estimation and Java implementation.
This issue is about preserving individual history, not choosing those education specifications or imputing parental income. It is also distinct from the equivalence-scale error in #541.
Could we confirm the preferred implementation and who will take it forward?
- Langage dominant
- Java
- Étoiles
- 26
- Forks
- 38
- Merge moyen
- 13 h 5 min
- PR mergées (30 j)
- 7
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de simpaths/SimPaths
-
Incorrect benefit-unit equivalence scale understates equivalised income for multi-adult unitsOuverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 89/100
-
bug
Difficulté 1/5 Moins d'une heure Accessibilité débutants 65/100
-
add checks for score evaluationsOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
-
F1: fertility-rate predictor inconcistency between estimation and Java implementationPeut-être pris @dariaple l’a pris il y a 4 jours. Ouverte
-
H2: should dlltsd01 be set to zero for retirees?Peut-être pris @Kolndre l’a pris il y a 6 jours. Ouverte
Toutes les issues de simpaths/SimPaths
Issues similaires
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
apache/rocketmq-dashboard#7361 ·
Les mainteneurs répondent en général sous 3 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
Les mainteneurs répondent en général sous 1 jour
-
Type/Improvement
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
ballerina-platform/static-code-analysis-tool#140 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
atomityhq/blog-cms#82 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
ready-for-triage triaged
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
RedHatInsights/notifications-backend#5080 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour