-
Notifications
You must be signed in to change notification settings - Fork 30
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
Testing CPS tax-unit benefit #135
base: master
Are you sure you want to change the base?
Conversation
@Amy-Xu, sorry for leaving this unchecked for so long. When you get the chance, can you check that the tests in this PR are still accurate? I'll merge once that's been done. |
@Amy-Xu and @andersonfrailey, I'm not convinced that the benefit of these new tests (proposed nine months ago in taxdata pull request #135) is worth the maintenance cost of adding them to the taxdata test suite. My main reason for saying this is that these tests do not do a good job of alerting us to the presence of filing units with extremely large (and therefore, probably incorrect) imputed benefit amounts. Perhaps some tests should be added to the C-TAM repository, which seems to have no tests at all. I'll be providing more information soon on extremely large imputed benefits in the CPS data, but for now consider this CPS record:
I really don't understand how a husband and wife, who between them earn over one million dollars and live with their two young children, can be getting a TANF benefit of more than $136,000. People using the CPS benefit data are going to ask that question, especially after they implement a UBI-with-benefit-repeal reform and see that this filing unit experiences a large loss in income. If the imputed TANF amount for this family is incorrect, then we need to add tests to C-TAM that detect these kinds of problems, and then fix the code (either in C-TAM or taxdata) that generated the incorrect imputation. On the other hand, if this imputed TANF benefit amount is correct, then the C-TAM repository needs to add documentation that explains why this extremely large TANF benefit for millionaires is accurate. |
@Amy-Xu, I see you wrote the C-TAM code that imputes TANF benefits. Does the $136,088 |
This PR addresses the issues brought up in #115. Specifically, this PR compares summaries of new CPS tax-unit database with previous versions in terms of the benefit aggregates and distribution.
All three tests passed using a previous version of cps_benefit.csv on top of PR #133. Will add the distribution & tabulation files to this PR once I run the tests with latest version of benefit data.