PolicyEngine / policyengine-us

The PolicyEngine US Python package contains a rules engine of the US tax-benefit system, and microdata generation for microsimulation analysis.
https://policyengine.org/us
GNU Affero General Public License v3.0
95 stars 167 forks source link

Add uprating before 2010 #4668

Open PavelMakarchuk opened 1 week ago

PavelMakarchuk commented 1 week ago

currently we cannot uprate parameters pre 2010 which causes some issues with the parameters like e.g. the student loan interest deduction

Error message

    from policyengine_us.system import (
  File "/Users/pavelmakarchuk/policyengine-us/policyengine_us/system.py", line 82, in <module>
    system = CountryTaxBenefitSystem()
  File "/Users/pavelmakarchuk/policyengine-us/policyengine_us/system.py", line 58, in __init__
    self.parameters = uprate_parameters(self.parameters)
  File "/Users/pavelmakarchuk/anaconda3/envs/policyengine/lib/python3.9/site-packages/policyengine_core/parameters/operations/uprate_parameters.py", line 136, in uprate_parameters
    raise ValueError(
ValueError: Failed to uprate using gov.irs.uprating at 2002-01-01 for gov.irs.ald.student_loan_interest.reduction.start.JOINT at 2010-01-01 because the uprating parameter is not defined at 2002-01-01.