Add SSI disability criteria variable#8364
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8364 +/- ##
============================================
+ Coverage 70.38% 100.00% +29.61%
============================================
Files 4791 2 -4789
Lines 69837 22 -69815
Branches 345 0 -345
============================================
- Hits 49153 22 -49131
+ Misses 20684 0 -20684
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
hua7450
added a commit
to hua7450/policyengine-us
that referenced
this pull request
Jun 1, 2026
Upstream PRs PolicyEngine#8364/PolicyEngine#8365 changed is_ssi_disabled to read the new canonical input meets_ssi_disability_criteria (default False) instead of deriving from is_disabled. The two housing-assistance MSA test cases used non-aged disabled adults set only via is_disabled, so they stopped qualifying as SSI-disabled and mn_msa_eligible_person dropped to 0. Add meets_ssi_disability_criteria: true to those persons, matching the new SSI test convention. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Summary
meets_ssi_disability_criteriaas a data-overridable person variable for SSI disability status.is_disabledand notssi_engaged_in_sga.is_ssi_disableddelegate to the new variable so US-data can later provide calibrated latent SSI disability status.Why
Asset-limit reforms need a data-backed way to distinguish broad CPS disability from likely SSI disability criteria. Without this, reforms can overstate new SSI participation and downstream Medicaid effects. This is the PolicyEngine-US contract needed before
policyengine-us-datacan impute the variable from SIPP/CPS predictors and publish it in enhanced CPS.Related: #1043, PolicyEngine/policyengine-us-data#1094.
Tests
uv run policyengine-core test policyengine_us/tests/policy/baseline/gov/ssa/ssi/meets_ssi_disability_criteria.yaml policyengine_us/tests/policy/baseline/gov/ssa/ssi/is_ssi_disabled.yaml -c policyengine_usuv run python policyengine_us/tests/test_batched.py policyengine_us/tests/policy/baseline/gov/ssa/ssi --mode per-subdiruv run ruff format --check policyengine_us/variables/gov/ssa/ssi/eligibility/status/meets_ssi_disability_criteria.py policyengine_us/variables/gov/ssa/ssi/eligibility/status/is_ssi_disabled.pyuv run ruff check policyengine_us/variables/gov/ssa/ssi/eligibility/status/meets_ssi_disability_criteria.py policyengine_us/variables/gov/ssa/ssi/eligibility/status/is_ssi_disabled.py