Skip to content

Fix a bug with the yHhQuintilesMonthC5 variable (BenefitUnit.csv) in the first year of the simulation - #500

Merged
dav-sonn merged 2 commits into
developfrom
fix_yHhQuintilesMonthC5_BU
Aug 4, 2026
Merged

Fix a bug with the yHhQuintilesMonthC5 variable (BenefitUnit.csv) in the first year of the simulation#500
dav-sonn merged 2 commits into
developfrom
fix_yHhQuintilesMonthC5_BU

Conversation

@dav-sonn

@dav-sonn dav-sonn commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Before, in the BenefitUnit.csv output file, for the first year of the simulation, the only income quintiles in the dataset were Q1 and Q5. Now, it extracts household income-quintile assignment into BenefitUnit.updateIncomeQuintile() and reuses it where non-benefit income is computed, removing duplicated branching logic. It also updates all benefit units’ quintile labels in SimPathsCollector after recalculating yearly percentile cutoffs (from year 2 onward), so quintile classification stays aligned with current-year distribution thresholds.

…the first year of the simulation

Before, in the BenefitUnit.csv output file, for the first year of the simulation, the only income quintiles in the dataset were Q1 and Q5. Now, it extracts household income-quintile assignment into `BenefitUnit.updateIncomeQuintile()` and reuses it where non-benefit income is computed, removing duplicated branching logic. It also updates all benefit units’ quintile labels in `SimPathsCollector` after recalculating yearly percentile cutoffs (from year 2 onward), so quintile classification stays aligned with current-year distribution thresholds.
Refreshes expected results for integration tests by updating AlignmentAdjustmentFactors1, EmploymentStatistics1, HealthStatistics1, Statistics1, and Statistics21.
@dav-sonn
dav-sonn merged commit 15e0bc6 into develop Aug 4, 2026
6 checks passed
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.

1 participant