You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Governments often structure benefit programs and tax credits with a maximum value, a phase-out start, and a phase-out rate. For example, the US Supplemental Security Income program phases out with income at 50% above an exemption; from the OpenFisca US docs:
We model these with sets of parameters for maximum_amount, phase_out_start, and phase_out_rate (e.g. see the US Child Tax Credit), and then code structures like:
I'd suggest a parameter structure that captures these elements and automatically computes the value via phase_out_parameter.calc(income), in the vein of parameter scales. I think this would reduce code duplication and room for error.
Governments often structure benefit programs and tax credits with a maximum value, a phase-out start, and a phase-out rate. For example, the US Supplemental Security Income program phases out with income at 50% above an exemption; from the OpenFisca US docs:
We model these with sets of parameters for
maximum_amount
,phase_out_start
, andphase_out_rate
(e.g. see the US Child Tax Credit), and then code structures like:I'd suggest a parameter structure that captures these elements and automatically computes the value via
phase_out_parameter.calc(income)
, in the vein of parameter scales. I think this would reduce code duplication and room for error.@nikhilwoodruff @rickecon
The text was updated successfully, but these errors were encountered: