-
Notifications
You must be signed in to change notification settings - Fork 201
New Jersey TANF Demographic Eligible #2174
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
Closed
xudonglai0426
wants to merge
4
commits into
PolicyEngine:main
from
xudonglai0426:xudonglai0426/issue2172
Closed
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
078b0a0
New Jersey TANF Demographic Eligible
xudonglai0426 03a2ea0
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
xudonglai0426 944b1a3
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
xudonglai0426 8a543d1
New Jersey TANF Demographic Eligible
xudonglai0426 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| - bump: minor | ||
| changes: | ||
| added: | ||
| - Added New Jersey TANF demographic eligibility |
30 changes: 30 additions & 0 deletions
30
...ests/policy/baseline/gov/states/nj/njdhs/tanf/nj_is_person_demographic_tanf_eligible.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| - name: "Is eligible for TANF due to children under 18" | ||
| period: 2022 | ||
| input: | ||
| age: 17 | ||
| output: | ||
| nj_is_person_demographic_tanf_eligible: true | ||
|
|
||
| - name: "18-year-old out of school is not eligible for TANF" | ||
| period: 2022 | ||
| input: | ||
| age: 18 | ||
| is_full_time_student: false | ||
| output: | ||
| nj_is_person_demographic_tanf_eligible: false | ||
|
|
||
| - name: "Is eligible for TANF due to being an 18-year-old in school" | ||
| period: 2022 | ||
| input: | ||
| age: 18 | ||
| is_full_time_student: true | ||
| output: | ||
| nj_is_person_demographic_tanf_eligible: true | ||
|
|
||
| - name: "Is not eligible for TANF due to being an 19-year-old in school" | ||
| period: 2022 | ||
| input: | ||
| age: 19 | ||
| is_full_time_student: true | ||
| output: | ||
| nj_is_person_demographic_tanf_eligible: false | ||
10 changes: 10 additions & 0 deletions
10
policyengine_us/variables/gov/states/nj/njdhs/tanf/nj_is_demographic_tanf_eligible.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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| from policyengine_us.model_api import * | ||
|
|
||
|
|
||
| class nj_is_demographic_tanf_eligible(Variable): | ||
| value_type = bool | ||
| entity = SPMUnit | ||
| definition_period = YEAR | ||
| label = "Demographic eligibility for New Jersey TANF" | ||
| documentation = "Whether any person in a family applying for the Temporary Assistance for Needy Families program meets demographic requirements." | ||
| adds = ["nj_is_person_demographic_tanf_eligible"] |
20 changes: 20 additions & 0 deletions
20
policyengine_us/variables/gov/states/nj/njdhs/tanf/nj_is_person_demographic_tanf_eligible.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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| from policyengine_us.model_api import * | ||
|
|
||
|
|
||
| class nj_is_person_demographic_tanf_eligible(Variable): | ||
| value_type = bool | ||
| entity = Person | ||
| definition_period = YEAR | ||
| label = "Person-level eligibility for New Jersey TANF based on age." | ||
| documentation = "Whether a person in a family applying for the Temporary Assistance for Needy Families program meets demographic requirements." | ||
xudonglai0426 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| def formula(person, period, parameters): | ||
| # title: State Plan for New Jersey TANF, 2021-2023, page 14 | ||
| # href: https://www.nj.gov/humanservices/dfd/programs/workfirstnj/tanf_2021_23_st_plan.pdf#page=14 | ||
| # title: New Jersey Administrative Code, 10:90-2.2, part (c)(d) | ||
| # href: https://advance.lexis.com/documentpage/?pdmfid=1000516&crid=f96f6864-3540-4a08-b41a-e523b7c5620a&nodeid=AAOAERAADAAC&nodepath=%2FROOT%2FAAO%2FAAOAER%2FAAOAERAAD%2FAAOAERAADAAC&level=4&haschildren=&populated=false&title=%C2%A7+10%3A90-2.2+WFNJ+TANF%2FGA+eligibility+requirements&config=00JAA1YTg5OGJlYi04MTI4LTRlNjQtYTc4Yi03NTQxN2E5NmE0ZjQKAFBvZENhdGFsb2ftaXPxZTR7bRPtX1Jok9kz&pddocfullpath=%2Fshared%2Fdocument%2Fadministrative-codes%2Furn%3AcontentItem%3A5XKV-PWF1-JKHB-61RG-00008-00&ecomp=8gf5kkk&prid=2fb77114-6c52-4b07-8969-f267ef81db7b | ||
| child_under_18 = person("age", period) < 18 | ||
| is_under_19 = person("age", period) < 19 | ||
|
Comment on lines
+16
to
+17
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It would give us more flexibility if we made these ages (18 and 19) parameters like |
||
| full_time_student = person("is_full_time_student", period) | ||
| school_enrolled_under_19_year_old = full_time_student & is_under_19 | ||
| return child_under_18 | school_enrolled_under_19_year_old | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add
is_full_time_student: falseso that each test contains both the formula inputs