-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
Apply wage growth rates to 'Max Taxable Earnings for Social Security' #428
Conversation
@Amy-Xu, it looks like this branch is on top of the branch from #424. In the future it is probably better to split them when possible. https://git-scm.com/docs/git-cherry-pick is really helpful if you realize too late. |
@Amy-Xu said:
The current_law_policy.json file is correct: MTE is indexed, but the other two threshold parameters are not indexed to anything (that is, they are constants over time by design in the 1983 social security reform). If these two OASDI benefit taxation threshold parameters were ever to be indexed (which is not likely in the current political environment), I think it is extremely likely that they would be indexed to price inflation (not wage growth). |
@MattHJensen said:
That's fine. |
@Amy-Xu said:
I agree with Matt: the code changes are way too confusing with the GDP thing going on. Can you prepare a new pull request that focuses only on the issue of adding wage growth rates in addition to the price inflation rates that are already in the master branch? When you do prepare that new pull request, remember what the conclusion from the prior conversation was: @MattHJensen stressed the need for the Policy class to have default price inflation rates and default wage growth rates that are exactly the same as the rates implicit in the blowup factors. IMPLICATION: it is a good idea to set the default rates in the Policy class, but there needs to be a unit test that checks that those two Policy default rates are exactly equal to the ones implicit in the blowup factors file. Maybe there is a test for this, but in my (probably too quick) review of the code changes, I didn't see one. My other concerns all have to do with variable naming. This doesn't affect the logic of the code, but it does influence the readability of the code. Readability is an important issue because now that TaxBrain is being used by people (including a number of economists), we are inviting them to read the Tax-Calculator code. I think we owe it these people (and to ourselves as the main developers) to use standard economic terminology when we name economic variables. Here are some of the variable naming problems that are likely to put off economists looking at the code: Policy class Policy class Policy class There may be other variable name changes that would be desirable, but these are important ones that will reduce the amount of confusion people have when they read the Tax-Calculator code. |
@martinholmer Just cleaned this PR up and right now the diff page only includes the code changes relevant to wage growth rates. I also renamed the variables as well. Could you take a look when you get a chance? @MattHJensen Do you think it's fine to keep working on this PR instead of opening a new one after I cleaned it up? |
Yep. This one is much easier to read now. |
@Amy-Xu said:
Amy, my only problem is that In the parameter_base.py code, you might want to consider setting an |
@martinholmer Indeed wage_rates is very confusing as you pointed out. I renamed it to wage_growth_rates. Thanks for the suggestions on indexing_rates. This way is definitely clearer than adding a bunch of if-else loop inside the for loops. I wrote two functions to return the indexing_rates for different parameters. Could you take a look at them? |
@Amy-Xu said:
I agree. These enhancements look much clearer now. Thanks for making the changes. |
@Amy-Xu, this is great. Could you show how it affects payroll tax liabilities over the budget window before we merge? (I anticipate that they should be higher with this PR than under master.) |
Thanks @Amy-Xu! Merging. |
Apply wage growth rates to 'Max Taxable Earnings for Social Security'
In this PR, wage growth rates replaced the CPI rates for this
_SS_Earnings_c
. Two things worth notice:@MattHJensen @martinholmer Could you review? Thanks!