Closed jdebacker closed 9 months ago
Attention: 12 lines
in your changes are missing coverage. Please review.
Comparison is base (
614ba3f
) 81.81% compared to head (944ebae
) 72.81%.
Files | Patch % | Lines |
---|---|---|
iot/inverse_optimal_tax.py | 33.33% | 12 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This PR adds the ability for users to enter an elasticity of taxable income that varies over the earned income distribution, which would resolve Issue #21. The functionality allows the user to enter a value of
eti
that is either a scalar (i.e., constant over income) or a dictionary with keysknot_points
andetc_values
, which each contain corresponding lists of income values and the ETI at those values. E.g., using the estimate of the ETI over the income distribution from Gruber and Saez (2002), this would look like:Where the last value is provided to help find just a gradual increase in the ETI after $250,000. Using a linear spline, the results look like:
The sharp changes in the ETI in this interpolated function are probably not realistic and introduce odd kinds in the implied social welfare weights.
However, with so few datapoints, a cubic spline has its own problems (going off to values that are unrealistically high):
I believe the solution is to find more data points on the ETI on different parts of the income distribution that can be used to inform a cubic spline. This should allow for some smoothness in the ETI spline, but without a steep slope in some values beyond those in the literature.
cc @john-p-ryan