-
Notifications
You must be signed in to change notification settings - Fork 14
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
[WIP] Increases independence of substitution effects #44
base: master
Are you sure you want to change the base?
[WIP] Increases independence of substitution effects #44
Conversation
…hub.com/martinholmer/Behavioral-Responses into martinholmer-strengthen-test_sub_effect_independence
Codecov Report
@@ Coverage Diff @@
## master #44 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 2 2
Lines 112 112
=====================================
Hits 112 112
Continue to review full report at Codecov.
|
@MattHJensen, Thanks for the enhancement in B-R PR #44. The new test records are good. But your original thought was that short-term capital gains/losses would complicate the calculation of the the largest long-term capital loss that could be used in the new adjustment. If you specify each of the five test cases to have $9000 in short-term capital gains, then the independence test fails for RECIDs 3, 4, and 5. Here are the alternative test cases:
|
@MattHJensen, Your original notion that the amount of short-term capital gains would complicate the long-term capital loss adjustment is correct. The adjustment I suggested is not correct. A stronger test shows that my suggestion is incorrect. I suggest you copy and paste the revised test (see below) into your PR branch and then figure out what adjustment formula allows you to pass all the tests. You can run the tests quickly using this command:
|
This resolves the lack of independence between the substitution effect and the long term capital gains elasticity identified by @martinholmer in #41.