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

EMTR on charitable contributions #1104

Merged
merged 2 commits into from
Dec 14, 2016
Merged

Conversation

codykallen
Copy link
Contributor

This PR adds the ability to calculate the EMTR on charitable contributions. Since this is negative, this should be interpreted as the effective marginal subsidy on charitable contributions.

Due to limited data on non-itemizers, this MTR should only be considered valid when called on a current law calculator or a reform that reduces or limits itemized deductions. It should also be considered valid only for small values of finite_diff (e.g. the default value of finite_diff of 0.01).

This MTR is useful for estimating the impact of a reform on charitable giving. A reform that limits itemized deductions also reduces the marginal subsidy for charitable contributions, causing individuals to reduce charitable giving.

@codykallen
Copy link
Contributor Author

@codecov-io
Copy link

codecov-io commented Dec 13, 2016

Current coverage is 98.79% (diff: 100%)

Merging #1104 into master will not change coverage

@@             master      #1104   diff @@
==========================================
  Files            38         38          
  Lines          2830       2830          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           2796       2796          
  Misses           34         34          
  Partials          0          0          

Powered by Codecov. Last update ce88a73...158785b

@martinholmer
Copy link
Collaborator

@codykallen, Thanks for your MTR contribution in pull request #1104.

As I remember from the last time we added a variable to the MTR_VALID_VARIABLES list, the addition of a variable automatically generates a new MTR histogram for that new variable in the pufcsv_mtr_expect.txt file. Can you run the full set of unit tests (including those marked requires_pufcsv) to see if the new histogram for variable e19800 looks the way you would expect? If it does (and none of the other MTR results change), then add the new version of the pufcsv_mtr_expect.txt file to this pull request.

@martinholmer martinholmer merged commit a79fe7f into PSLmodels:master Dec 14, 2016
@martinholmer
Copy link
Collaborator

@codykallen, Thanks for the contribution.

@MattHJensen MattHJensen mentioned this pull request Dec 14, 2016
@codykallen codykallen deleted the mtr_charity branch November 10, 2017 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants