-
Notifications
You must be signed in to change notification settings - Fork 201
Add state-specific Medicaid takeup rates and Section 1931 deprivation rules #7317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
|
Per our meeting we'll remove takeup from this (move to us-data) and limit this PR to 1931 |
…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>
|
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. |
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