Skip to content

Order the SNAP take-up fill by household liquid assets - #1857

Open
DTrim99 wants to merge 2 commits into
mainfrom
snap-fill-asset-propensity-1712
Open

DTrim99 wants to merge 2 commits into
mainfrom
snap-fill-asset-propensity-1712

Conversation

@DTrim99

@DTrim99 DTrim99 commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

Part 2 of #1712. The SNAP take-up fill now reaches low-asset units first.

What changes

Today the snap_state_take_up fill 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.

  • Measurement (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.
    • Households: SSUID with ERESIDENCEID. Liquid assets are the members' TVAL_BANK + TVAL_STMF + TVAL_BOND; receipt is any member with RSNAP_YRYN == 1. The income ratio, weight and state come from the minimum-PNUM member's THINCPOV, WPFINWGT and TEHC_ST.
    • States: those whose BBCE has no asset test in December 2022, the 2023 SIPP's reference year (Users' Guide, section 1.5.3). They're read from the installed engine's gov.hhs.tanf.non_cash.asset_limit (an infinite limit) with policyengine-core's parameter-file loader, so nothing imports policyengine_us. There the gradient is take-up, not the resource limit.
    • Income standardization: households under 200% of poverty, in three income bands. A band's propensity is its observed receipt over the receipt its households would have at their income band's rate, so the factor carries the asset gradient and not each asset band's income mix. That lets the CPS side use assets alone, with no new engine pass.
    • Sparse bands: a band with fewer than 30 donor households gets a factor of 1, recorded as neutral.
  • Receiver. Each SPM unit takes its household's liquid assets: the members' imputed bank_account_assets + stock_assets + bond_assets, the same household measure as SIPP.
  • Stage (snap_state_take_up). It takes an optional fill_propensity (snap_fill_propensity and snap_fill_draw columns), and both operations in source_stages.json now read snap_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.

Household liquid assets Factor Donor households Receipt Expected at income rates
Under $250 1.48 1,320 59.0% 40.0%
$250 to $1,000 1.27 506 47.5% 37.5%
$1,000 to $3,000 0.85 536 30.9% 36.3%
$3,000 to $10,000 0.60 471 21.4% 35.6%
$10,000 to $50,000 0.39 567 13.7% 35.2%
$50,000 or more 0.23 392 7.7% 33.8%

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 the calibrate_binary_assignment operation, so whichever merges second needs a small rebase. They don't interact in behavior.

Tests

  • Engine-free (test_us_snap_fill_asset_propensity.py):
    • the factor is observed over income-expected receipt, worked by hand;
    • households split by December residence and sum their members;
    • other states, households at 200% of poverty or more, and other months are left out;
    • sparse and zero-receipt bands are neutral;
    • band edges are left-closed;
    • the state list comes from infinite limits for states and DC only;
    • SPM units take their household's assets;
    • missing inputs are refused.
  • Engine-free (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.
  • Builder: the SIPP column union covers the new columns, and the release _main test measures the propensity from the one shared SIPP read.
  • Engine (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).
  • The repin sequence, the three --check runs and ci_test_plan.py verify are clean. CI runs the full suites.

🤖 Generated with Claude Code

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
DTrim99 marked this pull request as ready for review December 3, 2026 00:13
@DTrim99
DTrim99 requested a review from juaristi22 December 3, 2026 00:13

This branch has not been deployed

No deployments
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