Skip to content

Add PIP points from disability categories#408

Draft
MaxGhenis wants to merge 1 commit into
mainfrom
codex/pip-points-imputation
Draft

Add PIP points from disability categories#408
MaxGhenis wants to merge 1 commit into
mainfrom
codex/pip-points-imputation

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

Summary

  • add a dataset-side helper assigning minimum qualifying PIP points from PIP daily living and mobility categories
  • guard automatic population of pip_dl_points / pip_m_points until the active policyengine-uk dependency exposes those input variables
  • add unit coverage for the category-to-points mapping

Context

Companion to PolicyEngine/policyengine-uk#1661. UK data currently assigns pip_dl_category and pip_m_category from reported amounts; this PR provides a conservative category-consistent points imputation so #1661's point-threshold formulas can be data-backed once those variables exist in policyengine-uk.

Tests

  • uv run pytest policyengine_uk_data/tests/test_disability_benefits.py -q
  • uv run --python 3.13 pytest policyengine_uk_data/tests/test_disability_benefits.py -q

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