Skip to content
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

Incorporate take-up of itemized medical deduction #137

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: minor
changes:
added:
- Incorporate take-up of itemized medical deduction.
8 changes: 8 additions & 0 deletions policyengine_us_data/datasets/cps/cps.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,14 @@ def add_takeup(self):
generator.random(len(data["tax_unit_id"])) < eitc_takeup_rate
)

itemized_medical_deduction_takeup_rate = (
parameters.gov.irs.deductions.itemized.medical.takeup
)
data["takes_up_itemized_medical_deduction"] = (
generator.random(len(data["tax_unit_id"]))
< itemized_medical_deduction_takeup_rate
)

self.save_dataset(data)


Expand Down
Loading