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

Model take-up of itemized medical deduction #5394

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 3 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:
- Itemized medical deduction take-up.
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:
2024-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
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ class medical_expense_deduction(Variable):
documentation = "Medical expenses deducted from taxable income."

def formula(tax_unit, period, parameters):
takes_up_itemized_medical_deduction = tax_unit(
"takes_up_itemized_medical_deduction", period
)
expense = add(tax_unit, period, ["medical_out_of_pocket_expenses"])
medical = parameters(period).gov.irs.deductions.itemized.medical
medical_floor = medical.floor * tax_unit("positive_agi", period)
return max_(0, expense - medical_floor)
return (
max_(0, expense - medical_floor)
* takes_up_itemized_medical_deduction
)
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
Loading