-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
Changes to CPI_offset #2413
Changes to CPI_offset #2413
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2413 +/- ##
=======================================
Coverage 99.92% 99.92%
=======================================
Files 13 13
Lines 2530 2577 +47
=======================================
+ Hits 2528 2575 +47
Misses 2 2
Continue to review full report at Codecov.
|
Thanks very much for opening this PR, @Peter-Metz! I will review, and of course anyone else is welcome to as well. |
@Peter-Metz this looks good! I'll take a closer look today and tomorrow. |
Hey @Peter-Metz, I'm trying to get going on this PR review again. Sorry for the long delay! I've made some updates on this
I'm focusing on the
Looking at the $ grep II_em_ps taxcalc/reforms/*json
taxcalc/reforms/2017_law.json: "II_em_ps": {"2017": [261500, 313800, 156900, 287650, 313800]}, See update here: https://github.com/PSLmodels/Tax-Calculator/blob/master/taxcalc/reforms/2017_law.json#L86 This is true for some of the other parameters in this error message: (taxcalc-dev) ~/Documents/Tax-Calculator
$ grep II_em_ps taxcalc/reforms/*json
taxcalc/reforms/2017_law.json: "II_em_ps": {"2017": [261500, 313800, 156900, 287650, 313800]},
(taxcalc-dev) ~/Documents/Tax-Calculator
$ grep STD_Dep taxcalc/reforms/*json
taxcalc/reforms/2017_law.json: "STD_Dep": {"2017": 1050},
(taxcalc-dev) ~/Documents/Tax-Calculator
$ grep STD_Aged taxcalc/reforms/*json
taxcalc/reforms/2017_law.json: "STD_Aged": {"2017": [1550, 1250, 1250, 1550, 1550]},
(taxcalc-dev) ~/Documents/Tax-Calculator
$ grep CG_brk1 taxcalc/reforms/*json
taxcalc/reforms/2017_law.json: "CG_brk1": {"2017": [37950, 75900, 37950, 50800, 75900]},
taxcalc/reforms/2017_law.json: "AMT_CG_brk1": {"2017": [37950, 75900, 37950, 50800, 75900]},
taxcalc/reforms/Trump2016.json: "CG_brk1": {"2017": [37500, 75000, 37500, 37500, 75000]},
(taxcalc-dev) ~/Documents/Tax-Calculator
$ grep EITC_c taxcalc/reforms/*json
taxcalc/reforms/2017_law.json: "EITC_c": {"2017": [510, 3400, 5616, 6318]},
taxcalc/reforms/BrownKhanna.json:// - 1: EITC_c
taxcalc/reforms/BrownKhanna.json: "EITC_c": {"2017": [3000, 6528, 10783, 12131]},
taxcalc/reforms/Renacci.json:// 7: EITC_c
taxcalc/reforms/Renacci.json: "EITC_c": {"2017": [1020, 4760, 7862, 8845]}
(taxcalc-dev) ~/Documents/Tax-Calculator
My question is: why are these values not reset to the CLP value in |
@Peter-Metz and I just wrapped up a debugging session. We think that this PR is ready to be merged. I can try to remove the use of I'll keep thinking about this problem, but it shouldn't block this PR. For future reference, some approaches we tried were:
Independent of this debugging session, I also stepped through I'll keep thinking about whether use of |
@hdoupe thanks for all of your work reviewing this PR! |
@Peter-Metz, thanks very much for this PR! The bug fix and enhanced behavior both look good and make sense to me. As I think about the implications of the change in usage, though, I am growing somewhat concerned for users who may still be relying on old reform jsons that depend on the the old First of all, I am interested to know if you share these concerns. If so, what do you think about an approach along these lines:
This would allow us to wait until Max's new docs are incorporated, and perhaps a bit more, before making a This would only make sense if the bug fix and usage change are separable. |
@MattHJensen, thanks for the feedback. Just to clarify, what would the My view is that while this PR may affect a small number of users, it would still do more good than harm because of the counterintuitive behavior of
True, but the description doesn't discuss the additive behavior of the parameter values themselves, which is what makes this parameter different from every other Tax-Calculator policy parameter. My suggestion would be to add a warning that the definition of |
This is another viable solution. My recollection though is that the warning proved annoying (because everyone saw it, even if it wasn't relevant to them) and then we removed it within a couple of years, so things could still fail silently after that. |
I like the idea of creating a new parameter I'm in favor of adding a warning if users use Also, this warning should only be shown to users that use the redefined parameter and not all users who use Tax-Calculator. |
@MattHJensen I understand the benefits of this approach but I'm wary of the complications/ unexpected interactions this could cause. Do you propose setting the current law values for Another option would be to change the name of the parameter to |
Yes, that was my thinking.
This would resolve my concerns; it would just require that the next version be a major release. Since we are ripe for a major release anyways, pending #2420, I would be happy to do this. (If a similar situation comes up in the future when we aren't otherwise ready for a major release, we could reconsider methods for phased removal.) |
Sounds good @MattHJensen. I've updated the parameter name to
|
@Peter-Metz, thanks a great deal for this PR. Merging. |
This PR makes two substantive changes to the way that
CPI_offset
is used and implemented:CPI_offset
is specified in a revision, that value is no longer added to the existingCPI_offset
. Rather, the specified value becomes the correction from the unchained CPI.CPI_offset
will still be applied to their indexing. Previously, the values did not revert.To illustrate (1), before this PR:
Now, with the same procedure, we have:
To illustrate (2), before the PR:
After the PR, with the same reform:
cc @MattHJensen @hdoupe