Add state-specific Medicaid takeup rates and Section 1931 deprivation rules#7317
Closed
Add state-specific Medicaid takeup rates and Section 1931 deprivation rules#7317
Conversation
… rules Fixes #7316 - Replace uniform 93% national takeup rate with state-specific rates derived from MACPAC enrollment targets (range: 58% Utah to 99% Colorado) - Add requires_deprivation parameter for non-expansion states using Section 1931 criteria (TX, FL, GA, AL, MS, SC, TN, KS, WY, SD, WI) - Add is_single_parent_household variable for deprivation determination - Update is_parent_for_medicaid_nfc to check deprivation requirement, correctly excluding married parents in non-expansion states Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7317 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 3 5 +2
Lines 54 68 +14
Branches 1 1
=========================================
+ Hits 54 68 +14
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:
|
- Utah: 58% → 53% (was 10% high vs administrative enrollment target) - Texas: 95% → 76% (was 25% high; 95% unrealistic for non-expansion state) These adjustments improve calibration match to state Medicaid enrollment targets. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Update test seed values to work with CA's 0.78 takeup rate (default state). Previous values assumed a ~93% rate which no longer applies. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…ix/state-specific-medicaid-takeup
Revert medicaid_take_up_seed label to original, make test explicit about state (CA) and use obvious seed values, remove redundant changelog entry. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Replace random() call with deterministic seed from microdata, matching the convention used by other takeup seeds. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Covers the dataset-based probabilistic path (lines 17-18) that was causing codecov/patch coverage failure. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…ix/state-specific-medicaid-takeup
Contributor
|
Per our meeting we'll remove takeup from this (move to us-data) and limit this PR to 1931 |
baogorek
added a commit
that referenced
this pull request
Feb 5, 2026
…try package Remove all random() calls and seed variables from the country package. Takeup variables (ACA, SNAP, Medicaid) are now formula-less with default True. WIC uses draw variables instead of random(). SSI resource test uses only policy logic. Add state-specific Medicaid rates, Section 1931 deprivation rules, Head Start/Early Head Start takeup variables. Supersedes #6635, #7317. Fixes #7316. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Collaborator
Author
|
Superseded by #7326, which includes all state-specific Medicaid takeup rates and Section 1931 deprivation rules from this PR, plus the full randomness migration. Companion data PR: PolicyEngine/policyengine-us-data#451. |
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
requires_deprivationparameter for non-expansion states using Section 1931 criteriais_single_parent_householdvariable to determine deprivation statusis_parent_for_medicaid_nfcto correctly exclude married parents in non-expansion statesFixes #7316
Test plan
🤖 Generated with Claude Code