-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/PolicyEngine/policyengine-us
- Loading branch information
Showing
125 changed files
with
1,873 additions
and
477 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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,105 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 1, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"from policyengine_us import Microsimulation\n", | ||
"from policyengine_core.reforms import Reform\n", | ||
"import pandas as pd" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 2, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"baseline = Microsimulation()\n", | ||
"baseline_poverty_gap = baseline.calculate(\n", | ||
" \"poverty_gap\", map_to=\"spm_unit\", period=2024\n", | ||
")" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 3, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"baseline_poverty_gap_sum = baseline_poverty_gap.sum()" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 4, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"reform = Reform.from_dict(\n", | ||
" {\n", | ||
" \"gov.states.ca.tax.income.credits.earned_income.eligibility.age.min\": {\n", | ||
" \"2024-01-01.2100-12-31\": 999\n", | ||
" }\n", | ||
" },\n", | ||
" country_id=\"us\",\n", | ||
")" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 5, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"reformed = Microsimulation(reform=reform)\n", | ||
"reformed_poverty_gap_sum = reformed.calculate(\n", | ||
" \"poverty_gap\", map_to=\"spm_unit\", period=2024\n", | ||
").sum()" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 6, | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"data": { | ||
"text/plain": [ | ||
"-619843635.3133545" | ||
] | ||
}, | ||
"execution_count": 6, | ||
"metadata": {}, | ||
"output_type": "execute_result" | ||
} | ||
], | ||
"source": [ | ||
"baseline_poverty_gap_sum - reformed_poverty_gap_sum" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "policyengine", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.9.16" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 2 | ||
} |
10 changes: 0 additions & 10 deletions
10
...s/gov/contrib/co_general_assembly/family_affordability_credit/reduction/older/amount.yaml
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...ov/contrib/co_general_assembly/family_affordability_credit/reduction/older/increment.yaml
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
...rs/gov/contrib/co_general_assembly/family_affordability_credit/reduction/older/start.yaml
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...gov/contrib/co_general_assembly/family_affordability_credit/reduction/younger/amount.yaml
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
.../contrib/co_general_assembly/family_affordability_credit/reduction/younger/increment.yaml
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
.../gov/contrib/co_general_assembly/family_affordability_credit/reduction/younger/start.yaml
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
policyengine_us/parameters/gov/irs/social_security/taxability/rate/additional.yaml
This file contains 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,11 @@ | ||
description: The IRS includes this additional portion of Social Security benefits in taxable income for filers whose modified adjusted gross income exceeds the additional threshold. | ||
values: | ||
2013-01-01: 0.85 | ||
|
||
metadata: | ||
breakdown: filing_status | ||
unit: /1 | ||
label: Social Security benefit additional taxable rate | ||
reference: | ||
- title: 26 U.S. Code § 86(a)(2) | ||
href: https://www.law.cornell.edu/uscode/text/26/86#a_2 |
11 changes: 11 additions & 0 deletions
11
policyengine_us/parameters/gov/irs/social_security/taxability/rate/base.yaml
This file contains 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,11 @@ | ||
description: The IRS includes this portion of Social Security benefits in taxable income for filers whose modified adjusted gross income is between the base and additional thresholds. | ||
values: | ||
2013-01-01: 0.5 | ||
|
||
metadata: | ||
breakdown: filing_status | ||
unit: /1 | ||
label: Social Security benefit base taxable rate | ||
reference: | ||
- title: 26 U.S. Code § 86(a)(1) | ||
href: https://www.law.cornell.edu/uscode/text/26/86#a_1 |
5 changes: 0 additions & 5 deletions
5
policyengine_us/parameters/gov/irs/social_security/taxability/rate/lower.yaml
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
policyengine_us/parameters/gov/irs/social_security/taxability/rate/upper.yaml
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
...engine_us/parameters/gov/irs/social_security/taxability/threshold/adjusted_base/main.yaml
This file contains 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,19 @@ | ||
description: The IRS taxes Social Security benefits at the additional rate, for filers with modified adjusted gross income between above the additional threshold, by filing status. | ||
SINGLE: | ||
2013-01-01: 34_000 | ||
JOINT: | ||
2013-01-01: 44_000 | ||
SEPARATE: | ||
2013-01-01: 34_000 | ||
HEAD_OF_HOUSEHOLD: | ||
2013-01-01: 34_000 | ||
SURVIVING_SPOUSE: | ||
2013-01-01: 34_000 | ||
|
||
metadata: | ||
breakdown: filing_status | ||
unit: currency-USD | ||
label: Social Security taxability additional threshold | ||
reference: | ||
- title: 26 U.S. Code § 86(c)(2) | ||
href: https://www.law.cornell.edu/uscode/text/26/86#c_2 |
Oops, something went wrong.