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

Add ce_aftertax_income() utility function and test #1098

Merged
merged 19 commits into from
Dec 21, 2016
Merged

Add ce_aftertax_income() utility function and test #1098

merged 19 commits into from
Dec 21, 2016

Conversation

martinholmer
Copy link
Collaborator

@martinholmer martinholmer commented Dec 8, 2016

The pull request implements as an optional utility function the kind of expected-utility normative welfare analysis discussed in issue #1050, which was raised by @gleiserson (Greg Leiserson).

This pull request also adds to the inctax.py command-line inteface to Tax-Calculator an option called --ceeu that uses the new utility function to compute certainty-equivalent expected-utility results for the specified reform.

Comments and suggestions are welcome.

@MattHJensen @feenberg @Amy-Xu @GoFroggyRun @andersonfrailey @zrisher @codykallen

@codecov-io
Copy link

codecov-io commented Dec 8, 2016

Current coverage is 98.83% (diff: 100%)

Merging #1098 into master will increase coverage by 0.04%

@@             master      #1098   diff @@
==========================================
  Files            38         38          
  Lines          2830       2931   +101   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           2796       2897   +101   
  Misses           34         34          
  Partials          0          0          

Powered by Codecov. Last update a79fe7f...37f983e

@@ -50,7 +50,7 @@ py.test -m "not requires_pufcsv"
```

This will start executing a pytest suite containing about 300 tests,
but will skip the few tests that require the `puf.csv` file as input.
but will skip the three tests that require the `puf.csv` file as input.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we really specify the exact number of tests in this document? We'll have to constantly update them, and the actual count is easily deducible for someone running py.test.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the tip.

Depending on your computer, the execution time for this complete suite
of unit tests is roughly three minutes.
of unit tests is roughly four minutes.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same point here - remove frequently changing numbers from documentation.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the tip.

@martinholmer
Copy link
Collaborator Author

I would like to merge pull request #1098 when I return to my office in a week on Wed, Dec. 21.
I will do the merge then if there have been no concerns or questions raised about the new, optional ce_aftertax_income() function being added to the utils.py file in #1098. So, you have a week to review #1098 and make your comments.

@MattHJensen @feenberg @Amy-Xu @GoFroggyRun @andersonfrailey @zrisher @codykallen
@gleiserson

@MattHJensen
Copy link
Contributor

@martinholmer, this looks great. +1

@martinholmer martinholmer merged commit 38f1d2b into PSLmodels:master Dec 21, 2016
@MattHJensen MattHJensen mentioned this pull request Dec 21, 2016
@martinholmer martinholmer deleted the ce-util branch December 22, 2016 19:55
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.

5 participants