Conversation
In FRS shared households (HHSTAT 2), later benefit units report the rent they pay (SRENTAMT) and their housing benefit (HBOTHAMT); HHRENT is the rent of the whole dwelling. Store liable_for_share_of_household_rent on those units so policyengine-uk can split the household's rent among the people liable for it. The FRS's own BURENT split is not used: in shared households it sums to about two and a half times HHRENT. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 tasks
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.
Fixes #511
Stacked on #506 (base
frs-boarder-lodger-rent), which is stacked on #503. Model side: PolicyEngine/policyengine-uk#2006.Summary
Adds the benefit-unit input
liable_for_share_of_household_rent. In FRS shared households (HHSTAT 2), it is true for each benefit unit after the first whose adults report the rent they pay (SRENTAMT > 0) or housing benefit (HBOTHAMT > 0).rent(HHRENT) is unchanged and stays the rent of the whole dwelling. policyengine-uk#2006 splits it per person liable (UC Regs 2013 Sch 4 para 24(4); HB Regs 2006 reg 12B(4)).Why not BURENT
The FRS derived variable BURENT is meant to split HHRENT across the units of a shared household. In the raw 2024-25 and 2023-24 EUL files it does not:
HHRENT and SRENTAMT are coherent. HHRENT ≈ n/(n−1) × the other units' summed SRENTAMT (median 1.5; 2.0 where there are two units), which is consistent with equal shares.
In the base build (FRS 2024-25, survey weights)
Raw cross-check: 178 later units of shared households have BURENT > 0.
Tests
policyengine_uk_data/tests/test_frs_shared_household_rent.py(7 cases, synthetic frames, no survey data) covers:Impact
The build. Enhanced build of this branch at a9e3371: production settings, sha256
ed1a29912656, finished in 53 minutes, exit 0. The only errors were the existing HMRC salary-sacrifice CSV download, which returns 410.This PR on its own. It changes no output until policyengine-uk reads the new input. policyengine-uk ignores dataset columns it has no variable for.
With policyengine-uk#2006. On this build, same weights, the head of #2006 against its base (#1896) gives:
The full tables are in the #2006 description.
axiom: n/a: data input (the rules are in policyengine-uk#2006; rulespec-uk#406)
🤖 Generated with Claude Code