Open
Conversation
Add state-level TANF takeup rates derived from ACF FY2023 caseload data and Census ACS poverty estimates, following the same pattern as Medicaid (state-specific rates) and SNAP (SPM unit level assignment). Priors are TANF-to-poverty ratios scaled ~2x to approximate takeup among eligible families. These will be adjusted during calibration against the existing $9B national cash assistance target. Closes #535 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
MaxGhenis
added a commit
to PolicyEngine/policyengine-us
that referenced
this pull request
Feb 14, 2026
…-circuit
- Add `takes_up_tanf_if_eligible` variable (bool, SPMUnit, default True)
- Wire all 39 implemented state TANF programs into tanf.py:
26 with standard naming ({st}_tanf) and 13 with program-specific
names (ak_atap, ct_tfa, fl_tca, ia_fip, md_tca, mi_fip, mn_mfip,
nj_wfnj, nm_works, ri_works, vt_reach_up, wi_works, wv_works)
- Apply takeup in TANF formula: value * takes_up
- Remove tanf_reported short-circuit that blocked reform microsimulations
- Update tests for new behavior
Companion to PolicyEngine/policyengine-us-data#536 which adds
state-level TANF takeup rates to microdata construction.
Closes #7400
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
5 tasks
- Separate shared state lookup from TANF-specific logic - Remove unnecessary intermediate variables - Replace redundant .get() fallback with direct dict access - Update docstring to reflect TANF as rates_by_state consumer Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
MaxGhenis
added a commit
to PolicyEngine/policyengine-us
that referenced
this pull request
Feb 16, 2026
…-circuit
- Add `takes_up_tanf_if_eligible` variable (bool, SPMUnit, default True)
- Wire all 39 implemented state TANF programs into tanf.py:
26 with standard naming ({st}_tanf) and 13 with program-specific
names (ak_atap, ct_tfa, fl_tca, ia_fip, md_tca, mi_fip, mn_mfip,
nj_wfnj, nm_works, ri_works, vt_reach_up, wi_works, wv_works)
- Apply takeup in TANF formula: value * takes_up
- Remove tanf_reported short-circuit that blocked reform microsimulations
- Update tests for new behavior
Companion to PolicyEngine/policyengine-us-data#536 which adds
state-level TANF takeup rates to microdata construction.
Closes #7400
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
MaxGhenis
added a commit
to MaxGhenis/policyengine-us
that referenced
this pull request
Feb 16, 2026
…-circuit
- Add `takes_up_tanf_if_eligible` variable (bool, SPMUnit, default True)
- Wire all 39 implemented state TANF programs into tanf.py:
26 with standard naming ({st}_tanf) and 13 with program-specific
names (ak_atap, ct_tfa, fl_tca, ia_fip, md_tca, mi_fip, mn_mfip,
nj_wfnj, nm_works, ri_works, vt_reach_up, wi_works, wv_works)
- Apply takeup in TANF formula: value * takes_up
- Remove tanf_reported short-circuit that blocked reform microsimulations
- Update tests for new behavior
Companion to PolicyEngine/policyengine-us-data#536 which adds
state-level TANF takeup rates to microdata construction.
Closes PolicyEngine#7400
Co-Authored-By: Claude Opus 4.6 <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
Adds state-level TANF takeup rates to the microdata construction pipeline, following the same pattern as Medicaid and SNAP. This is the data-side prerequisite for removing the
tanf_reportedshort-circuit from policyengine-us (#7400).Closes #535
Changes
New file:
parameters/take_up/tanf.yamlModified:
datasets/cps/cps.pyload_take_up_rate("tanf", ...)takes_up_tanf_if_eligibleboolean to each SPM unit using deterministic seeded RNGCalibration
The existing
tanf: 9e9hardcoded target inpull_hardcoded_targets.pywill calibrate total TANF spending. The takeup priors determine which households receive TANF in the microsim; calibration adjusts weights to match the $9B national target.Companion work needed (policyengine-us)
takes_up_tanf_if_eligiblevariable (bool, SPMUnit,default_value = True)tanf.py(currently only 4 of 39)value * takes_uptanf_reportedshort-circuitSee policyengine-us#7400.
Test plan
tanf.yamlloads correctly viaload_take_up_rate("tanf", 2023)add_takeup()assignstakes_up_tanf_if_eligibleto all SPM units🤖 Generated with Claude Code