Repository navigation
Conversation
The snap_state_take_up fill drew recipients from modeled-eligible units at one rate per state, so a unit with $40,000 in the bank was picked as readily as one with $100. Each unit's stable draw is now divided by a relative take-up propensity for its household's liquid-asset band, and both the rate prior and the count calibration read that fill draw. The counts are unchanged. The propensity is measured in-build from the shared SIPP December read: households (SSUID with ERESIDENCEID) under 200% of poverty in the states whose BBCE has no asset test in December 2022, the 2023 SIPP's reference year, read from the installed engine's asset_limit parameter without importing policyengine_us. Each band's factor is observed receipt over the receipt its households would have at their income band's rate, so the receiver needs only the household's imputed liquid assets. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DTrim99
marked this pull request as ready for review
December 3, 2026 00:13
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.
Part 2 of #1712. The SNAP take-up fill now reaches low-asset units first.
What changes
Today the
snap_state_take_upfill draws recipients from modeled-eligible SPM units at one rate per state, so a unit with $40,000 in the bank is as likely to be picked as one with $100. With this PR each unit's stable draw is divided by a relative take-up propensity for its household's liquid-asset band. The rate prior and the greedy count calibration both read that divided draw (snap_fill_draw). The FNS counts the stage calibrates to are unchanged, and so are the reported-receipt anchor and saturated states.us_runtime/snap_fill_asset_propensity.py). It works from the build's own 2023 SIPP December rows, from the same shared read the five SIPP donor stages use, measured while those rows are in memory.SSUIDwithERESIDENCEID. Liquid assets are the members'TVAL_BANK + TVAL_STMF + TVAL_BOND; receipt is any member withRSNAP_YRYN == 1. The income ratio, weight and state come from the minimum-PNUM member'sTHINCPOV,WPFINWGTandTEHC_ST.gov.hhs.tanf.non_cash.asset_limit(an infinite limit) with policyengine-core's parameter-file loader, so nothing importspolicyengine_us. There the gradient is take-up, not the resource limit.bank_account_assets + stock_assets + bond_assets, the same household measure as SIPP.snap_state_take_up). It takes an optionalfill_propensity(snap_fill_propensityandsnap_fill_drawcolumns), and both operations insource_stages.jsonnow readsnap_fill_draw. Without a propensity every factor is 1 and the fill draw is the stable draw, so the stage behaves as before. The diagnostics carry the measurement record (fill_propensity), and the stage declares the SIPP file as an artifact.Factors on the pinned SIPP file
Run on Modal with this branch's code on
pu2023.csv(the build's pinned SHA): 37 jurisdictions, 3,792 households, no neutral band.What it should change
The fill picks 55% of recipient units in the 27 November build (11.6M of 21.0M in January 2026), and 25.6% of recipients there hold more than $3,000 against 10.7% of SIPP SNAP households. The factors shift the fill toward low-asset units only in states that aren't saturated. In the 14 saturated states, which hold 21% of recipients, every eligible unit already takes up. #1835 (part 1) fixes the assets that reported recipients draw. This PR fixes which non-reporters the fill adds.
Units outside today's eligibility keep a draw-based propensity, as before (the stage's carry-over from Medicaid). That propensity now also falls with assets, so an eligibility-expanding reform enrolls asset-rich newly eligible units less often, as SIPP receipt does.
Interaction with #1851
#1851 (#1713) changes the same stage's count weight (
snap_month_weight); this PR changes its draw. They edit neighboring lines of the stage module and of thecalibrate_binary_assignmentoperation, so whichever merges second needs a small rebase. They don't interact in behavior.Tests
test_us_snap_fill_asset_propensity.py):test_us_snap_state_take_up.py): the fill draw is the stable draw over the propensity; without one they match; the fill reaches high-propensity units first; bad propensities are refused; both operations declare the fill draw; the diagnostics carry the record._maintest measures the propensity from the one shared SIPP read.engine_workflow/us/test_us_snap_fill_asset_propensity_engine.py): on policyengine-us 2.145.3 the December 2022 state list includes California and leaves out Idaho (a $5,000 test) and Michigan (whose test ends in 2023).--checkruns andci_test_plan.py verifyare clean. CI runs the full suites.🤖 Generated with Claude Code