Impute pre-SGA SSI disability criteria from SIPP#1095
Merged
Conversation
…y-status-imputation # Conflicts: # policyengine_us_data/calibration/source_impute.py # policyengine_us_data/datasets/cps/cps.py # policyengine_us_data/datasets/sipp/__init__.py # policyengine_us_data/datasets/sipp/sipp.py
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
Imputes
meets_ssi_disability_criteriainto enhanced CPS from SIPP so SSI disability status can be represented in the data.This PR intentionally stores the pre-SGA disability criteria signal.
policyengine-us==1.701.1applies the SGA screen dynamically inis_ssi_disabled, so applying SGA insidepolicyengine-us-datawould freeze current-law earnings policy into the dataset and make reforms incorrect.Details
meets_ssi_disability_criteriafor eCPS generation and legacy CPS enhancement pathsTDIS1AMTthroughTDIS10AMTpolicyengine-usto1.701.1, which contains the dynamic SGA separation inis_ssi_disabledLocal checks
env -u UV_FROZEN uv lock --lockeduv run pytest tests/unit/datasets/test_sipp_ssi_disability.py tests/unit/calibration/test_source_impute.py -q- 31 passeduv run ruff format ... && uv run ruff check ...uv run --with pyyaml python scripts/run_quality_guards.pyReview status
Draft while
/cyclereview is running. Do not merge until the independent review is clean and CI passes.