-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Model take-up of itemized medical deduction
- Loading branch information
Showing
4 changed files
with
35 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- bump: minor | ||
changes: | ||
added: | ||
- Itemized medical deduction take-up. |
10 changes: 10 additions & 0 deletions
10
policyengine_us/parameters/gov/irs/deductions/itemized/medical/takeup.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,10 @@ | ||
description: The share of eligible taxpayers who claim the itemized medical deduction. | ||
values: | ||
20224-01-01: 0.505 | ||
metadata: | ||
period: year | ||
unit: /1 | ||
label: Itemized medical deduction takeup rate | ||
reference: | ||
- title: Subsidizing Medical Spending Through the Tax Code: Take-Up, Targeting and the Cost of Claiming | ||
href: https://www.nber.org/system/files/working_papers/w33213/w33213.pdf#page=2 |
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
14 changes: 14 additions & 0 deletions
14
...gov/irs/income/taxable_income/deductions/itemizing/takes_up_itemized_medical_deduction.py
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,14 @@ | ||
from policyengine_us.model_api import * | ||
|
||
|
||
class takes_up_itemized_medical_deduction(Variable): | ||
value_type = bool | ||
entity = TaxUnit | ||
label = "Takes up the itemized medical deduction" | ||
definition_period = YEAR | ||
|
||
def formula(tax_unit, period, parameters): | ||
if not hasattr(tax_unit.simulation, "dataset"): | ||
return True | ||
takeup_rate = parameters(period).gov.irs.deductions.medical.takeup | ||
return random(tax_unit) < takeup_rate |