Make _cpi_offset work like other policy parameters #1796
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request makes the
_cpi_offset
policy parameter work like other policy parameters in that it can now revise history by changing the historically known values of policy parameters. These changes do not affect any results generated for the TCJA bills because those bills called for chained-CPI indexing of only unknown policy parameter values (that is, values for 2018 and beyond). These changes do affect results from hypothetical reforms that switch to chained-CPI indexing in earlier years, as was discussed in PolicyBrain pull request 790 here.An example will help clarify the nature of the changes in this pull request. Consider this script:
Before this pull request was merged, the script generates these results:
Notice that the reform values and the baseline values are the same for 2016 and 2017 because values for those years are known in the
current_law_policy.json
file.After this pull request is merged, the script generates these results:
Notice that the reform values and the baseline values are now different for 2016 and 2017 even though values for those years are known in the
current_law_policy.json
file. And, of course, reform values in 2018+ are lower than before because chained-CPI indexing starts earlier after the changes in this pull request.