Skip to content

Commit

Permalink
Merge pull request #1963 from martinholmer/0-19-0
Browse files Browse the repository at this point in the history
Update RELEASES.md information for pending release 0.19.0
  • Loading branch information
martinholmer authored Apr 19, 2018
2 parents 98e570c + 6946038 commit 8b845d1
Show file tree
Hide file tree
Showing 19 changed files with 362 additions and 357 deletions.
35 changes: 35 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,41 @@ Go [here](https://github.com/open-source-economics/Tax-Calculator/pulls?q=is%3Ap
for a complete commit history.


2018-04-19 Release 0.19.0
-------------------------
(last merged pull request is
[#1977](https://github.com/open-source-economics/Tax-Calculator/pull/1977))

**API Changes**
- Improve data quality of several CPS age variables, which causes changes in CPS tax results
[[#1962](https://github.com/open-source-economics/Tax-Calculator/pull/1962)
by Anderson Frailey and Martin Holmer based on bug reported by Max Ghenis]

**New Features**
- Add validity checking for revised values of behavioral response parameters
[[#1952](https://github.com/open-source-economics/Tax-Calculator/pull/1952)
by Hank Doupe]
- Strengthen logic that prevents disclosure of details of filing units in PUF
[[#1972](https://github.com/open-source-economics/Tax-Calculator/pull/1972)
[#1973](https://github.com/open-source-economics/Tax-Calculator/pull/1973)
[#1976](https://github.com/open-source-economics/Tax-Calculator/pull/1976)
by Martin Holmer]

**Bug Fixes**
- Fix loose checking of the data type of parameters in reform dictionaries passed to the Policy class `implement_reform` method
[[#1960](https://github.com/open-source-economics/Tax-Calculator/pull/1960)
by Martin Holmer based on bug reported by Hank Doupe]
- Fix tables diagnostic and distribution tables so that itemizers plus standard-deduction takers equals total returns
[[#1964](https://github.com/open-source-economics/Tax-Calculator/pull/1964)
by Martin Holmer]
- Fix confusing documentation of the data type of parameters
[[#1970](https://github.com/open-source-economics/Tax-Calculator/pull/1970)
by Martin Holmer as suggested by Hank Doupe]
- Fix bug in TCJA tax calculations for those with large business losses
[[#1977](https://github.com/open-source-economics/Tax-Calculator/pull/1977)
by Martin Holmer based on bug report by Ernie Tedeschi]


2018-03-30 Release 0.18.0
-------------------------
(last merged pull request is
Expand Down
Binary file modified docs/atr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions docs/cookbook/recipe00.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@

# specify Calculator object for static analysis of reform policy
pol.implement_reform(params['policy'])
if pol.reform_errors: # check for reform error messages
print(pol.reform_errors)
exit(1)
calc2 = Calculator(policy=pol, records=recs)

# calculate reform income tax liabilities for cyr
Expand Down
130 changes: 65 additions & 65 deletions docs/cookbook/recipe00.res
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ You loaded data for 2014.
Tax-Calculator startup automatically extrapolated your data to 2014.
WARNING: Tax-Calculator packages for Python 2.7 will
no longer be provided beginning in 2019
because Pandas is stopping development for 2.7.
SOLUTION: upgrade to Python 3.6 now.
because Pandas is stopping development for 2.7
SOLUTION: upgrade to Python 3.6 now
You loaded data for 2014.
Tax-Calculator startup automatically extrapolated your data to 2014.
WARNING: Tax-Calculator packages for Python 2.7 will
no longer be provided beginning in 2019
because Pandas is stopping development for 2.7.
SOLUTION: upgrade to Python 3.6 now.
because Pandas is stopping development for 2.7
SOLUTION: upgrade to Python 3.6 now

REFORM DOCUMENTATION
Baseline Growth-Difference Assumption Values by Year:
Expand Down Expand Up @@ -55,93 +55,93 @@ Policy Reform Parameter Values by Year:
and above tax bracket 6.
baseline_value: 0.37

2020_CLP_itax_rev($B)= 1273.15
2020_REF_itax_rev($B)= 1264.11
2020_CLP_itax_rev($B)= 1278.60
2020_REF_itax_rev($B)= 1269.52

CLP diagnostic table:
2020
Returns (#m) 174.51
AGI ($b) 11,621.97
AGI ($b) 11,615.39
Itemizers (#m) 30.84
Itemized Deduction ($b) 869.46
Standard Deduction Filers (#m) 124.86
Standard Deduction ($b) 2,238.71
Standard Deduction Filers (#m) 143.68
Standard Deduction ($b) 2,541.12
Personal Exemption ($b) 0.00
Taxable Income ($b) 8,775.43
Regular Tax ($b) 1,462.45
AMT Income ($b) 11,010.43
Taxable Income ($b) 8,774.69
Regular Tax ($b) 1,462.26
AMT Income ($b) 11,003.84
AMT Liability ($b) 1.87
AMT Filers (#m) 0.46
Tax before Credits ($b) 1,464.32
Refundable Credits ($b) 97.22
Nonrefundable Credits ($b) 103.11
Tax before Credits ($b) 1,464.14
Refundable Credits ($b) 95.30
Nonrefundable Credits ($b) 99.39
Reform Surtaxes ($b) 0.00
Other Taxes ($b) 9.16
Ind Income Tax ($b) 1,273.15
Ind Income Tax ($b) 1,278.60
Payroll Taxes ($b) 1,300.24
Combined Liability ($b) 2,573.39
With Income Tax <= 0 (#m) 71.19
With Combined Tax <= 0 (#m) 46.02
Combined Liability ($b) 2,578.84
With Income Tax <= 0 (#m) 70.84
With Combined Tax <= 0 (#m) 45.82

REF diagnostic table:
2020
Returns (#m) 174.51
AGI ($b) 11,621.97
AGI ($b) 11,615.39
Itemizers (#m) 30.76
Itemized Deduction ($b) 867.24
Standard Deduction Filers (#m) 124.93
Standard Deduction ($b) 2,240.08
Personal Exemption ($b) 303.11
Taxable Income ($b) 8,531.41
Regular Tax ($b) 1,451.14
AMT Income ($b) 11,012.31
Standard Deduction Filers (#m) 143.75
Standard Deduction ($b) 2,542.50
Personal Exemption ($b) 332.32
Taxable Income ($b) 8,530.67
Regular Tax ($b) 1,450.95
AMT Income ($b) 11,005.72
AMT Liability ($b) 1.85
AMT Filers (#m) 0.47
Tax before Credits ($b) 1,452.99
Refundable Credits ($b) 100.12
Nonrefundable Credits ($b) 97.93
Tax before Credits ($b) 1,452.80
Refundable Credits ($b) 98.06
Nonrefundable Credits ($b) 94.38
Reform Surtaxes ($b) 0.00
Other Taxes ($b) 9.16
Ind Income Tax ($b) 1,264.11
Ind Income Tax ($b) 1,269.52
Payroll Taxes ($b) 1,300.24
Combined Liability ($b) 2,564.35
With Income Tax <= 0 (#m) 73.35
With Combined Tax <= 0 (#m) 46.36
Combined Liability ($b) 2,569.76
With Income Tax <= 0 (#m) 72.98
With Combined Tax <= 0 (#m) 46.16

Extract of 2020 distribution table by baseline expanded-income decile:
funits(#m) itax1($b) itax2($b) aftertax_inc1($b) aftertax_inc2($b)
0-10n 0.09 0.18 0.19 -25.54 -25.54
0-10z 1.26 0.00 0.00 0.00 0.00
0-10p 16.10 -8.48 -8.48 108.07 108.07
10-20 17.45 -14.89 -15.49 334.60 335.20
20-30 17.45 -11.14 -12.24 482.84 483.94
30-40 17.45 -0.42 -2.01 624.66 626.25
40-50 17.45 13.93 11.63 788.96 791.26
50-60 17.45 38.24 34.66 990.30 993.88
60-70 17.45 71.75 67.44 1,254.75 1,259.05
70-80 17.45 117.00 111.61 1,610.79 1,616.18
80-90 17.45 211.55 203.24 2,157.52 2,165.83
90-100 17.45 855.42 873.55 4,322.37 4,304.24
ALL 174.51 1,273.15 1,264.11 12,649.32 12,658.36
90-95 8.73 190.58 186.17 1,462.16 1,466.57
95-99 6.98 286.88 285.18 1,700.04 1,701.73
Top 1% 1.75 377.96 402.19 1,160.17 1,135.94
0-10n 0.00 0.00 0.00 0.00 0.00
0-10z 0.00 0.00 0.00 0.00 0.00
0-10p 17.45 -8.25 -8.25 81.84 81.84
10-20 17.45 -14.67 -15.27 333.11 333.71
20-30 17.45 -10.85 -11.96 481.06 482.16
30-40 17.45 -0.12 -1.71 622.71 624.29
40-50 17.45 14.34 12.05 786.21 788.50
50-60 17.45 38.77 35.19 986.85 990.43
60-70 17.45 72.37 68.06 1,250.69 1,255.00
70-80 17.45 117.59 112.21 1,606.34 1,611.72
80-90 17.45 212.27 203.95 2,151.71 2,160.03
90-100 17.45 857.16 875.26 4,312.54 4,294.44
ALL 174.51 1,278.60 1,269.52 12,613.05 12,622.13
90-95 8.73 191.26 186.84 1,458.27 1,462.69
95-99 6.98 287.47 285.75 1,695.68 1,697.41
Top 1% 1.75 378.42 402.67 1,158.58 1,134.33

Extract of 2020 income-tax difference table by expanded-income decile:
funits(#m) agg_diff($b) mean_diff($) aftertaxinc_diff(%)
0-10n 0.09 0.01 94.10 0.03
0-10z 1.26 0.00 0.00 nan
0-10p 16.10 -0.00 -0.21 0.00
10-20 17.45 -0.60 -34.32 0.18
20-30 17.45 -1.10 -63.23 0.23
30-40 17.45 -1.59 -91.08 0.25
40-50 17.45 -2.30 -131.63 0.29
50-60 17.45 -3.58 -205.09 0.36
60-70 17.45 -4.31 -246.86 0.34
70-80 17.45 -5.39 -309.00 0.33
80-90 17.45 -8.31 -476.02 0.39
90-100 17.45 18.12 1,038.51 -0.42
ALL 174.51 -9.05 -51.84 0.07
90-95 8.73 -4.41 -505.10 0.30
95-99 6.98 -1.70 -242.96 0.10
Top 1% 1.75 24.23 13,879.03 -2.09
0-10n 0.00 0.00 0.00 nan
0-10z 0.00 0.00 0.00 nan
0-10p 17.45 -0.00 -0.16 0.00
10-20 17.45 -0.60 -34.39 0.18
20-30 17.45 -1.10 -63.26 0.23
30-40 17.45 -1.59 -90.90 0.25
40-50 17.45 -2.29 -131.35 0.29
50-60 17.45 -3.58 -205.32 0.36
60-70 17.45 -4.31 -247.10 0.34
70-80 17.45 -5.38 -308.16 0.33
80-90 17.45 -8.32 -476.80 0.39
90-100 17.45 18.10 1,037.21 -0.42
ALL 174.51 -9.08 -52.02 0.07
90-95 8.73 -4.42 -506.75 0.30
95-99 6.98 -1.72 -247.10 0.10
Top 1% 1.75 24.25 13,885.76 -2.09
20 changes: 4 additions & 16 deletions docs/cookbook/recipe01.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,14 @@
# specify Policy object for static analysis of reform1 relative to pre-TCJA
reform1 = Calculator.read_json_param_objects(reform1_text, None)
policy1 = Policy()
policy1.implement_reform(baseline['policy'])
if policy1.reform_errors:
print(policy1.reform_errors)
exit(1)
policy1.implement_reform(reform1['policy'])
if policy1.reform_errors:
print(policy1.reform_errors)
exit(1)
policy1.implement_reform(baseline['policy'], print_warnings=False)
policy1.implement_reform(reform1['policy'], print_warnings=False)

# specify Policy object for static analysis of reform2 relative to pre-TCJA
reform2 = Calculator.read_json_param_objects(reform2_text, None)
policy2 = Policy()
policy1.implement_reform(baseline['policy'])
if policy1.reform_errors:
print(policy1.reform_errors)
exit(1)
policy2.implement_reform(reform2['policy'])
if policy2.reform_errors:
print(policy2.reform_errors)
exit(1)
policy1.implement_reform(baseline['policy'], print_warnings=False)
policy2.implement_reform(reform2['policy'], print_warnings=False)

cyr = 2018

Expand Down
74 changes: 37 additions & 37 deletions docs/cookbook/recipe01.res
Original file line number Diff line number Diff line change
Expand Up @@ -2,52 +2,52 @@ You loaded data for 2014.
Tax-Calculator startup automatically extrapolated your data to 2014.
WARNING: Tax-Calculator packages for Python 2.7 will
no longer be provided beginning in 2019
because Pandas is stopping development for 2.7.
SOLUTION: upgrade to Python 3.6 now.
because Pandas is stopping development for 2.7
SOLUTION: upgrade to Python 3.6 now
You loaded data for 2014.
Tax-Calculator startup automatically extrapolated your data to 2014.
WARNING: Tax-Calculator packages for Python 2.7 will
no longer be provided beginning in 2019
because Pandas is stopping development for 2.7.
SOLUTION: upgrade to Python 3.6 now.
2018_REFORM1_iitax_rev($B)= 1278.3
2018_REFORM2_iitax_rev($B)= 1129.3
because Pandas is stopping development for 2.7
SOLUTION: upgrade to Python 3.6 now
2018_REFORM1_iitax_rev($B)= 1281.3
2018_REFORM2_iitax_rev($B)= 1134.6

Extract of 2018 income-tax difference table by expanded-income decile
(taxfall is count of funits with cut in income tax in reform 2 vs 1)
(taxrise is count of funits with rise in income tax in reform 2 vs 1)
funits(#m) taxfall(#m) taxrise(#m) agg_diff($b) mean_diff($) \
0-10n 0.09 0.00 0.00 0.17 1,839.43
0-10z 1.23 0.00 0.00 0.00 0.00
0-10p 15.66 3.13 1.08 -0.32 -20.21
10-20 16.99 8.10 1.72 -1.90 -111.74
20-30 16.99 9.53 1.47 -3.98 -234.38
30-40 16.99 10.45 1.69 -6.08 -357.87
40-50 16.99 11.44 1.72 -8.20 -482.38
50-60 16.99 11.79 2.13 -9.77 -575.24
60-70 16.99 12.48 2.07 -12.21 -718.75
70-80 16.99 13.55 1.67 -16.87 -992.88
80-90 16.99 13.40 2.31 -21.92 -1,289.98
90-100 16.99 14.49 1.70 -67.89 -3,995.72
ALL 169.89 108.37 17.56 -148.96 -876.79
90-95 8.49 7.10 0.90 -16.99 -2,000.23
95-99 6.80 5.93 0.59 -29.11 -4,283.11
Top 1% 1.70 1.46 0.21 -21.79 -12,822.52
0-10n 0.00 0.00 0.00 0.00 0.00
0-10z 0.00 0.00 0.00 0.00 0.00
0-10p 16.99 2.86 1.12 -0.28 -16.72
10-20 16.99 8.03 1.77 -1.83 -107.43
20-30 16.99 9.47 1.52 -3.85 -226.66
30-40 16.99 10.40 1.72 -5.92 -348.16
40-50 16.99 11.35 1.78 -7.95 -468.00
50-60 16.99 11.78 2.15 -9.63 -566.66
60-70 16.99 12.39 2.15 -11.94 -702.75
70-80 16.99 13.54 1.71 -16.64 -979.66
80-90 16.99 13.30 2.42 -21.37 -1,257.74
90-100 16.99 14.46 1.76 -67.26 -3,959.09
ALL 169.89 107.59 18.09 -146.67 -863.29
90-95 8.49 7.08 0.94 -16.70 -1,965.79
95-99 6.80 5.92 0.61 -28.72 -4,226.66
Top 1% 1.70 1.46 0.21 -21.84 -12,854.86

aftertax_income_diff(%)
0-10n 0.70
0-10n nan
0-10z nan
0-10p 0.32
10-20 0.62
20-30 0.91
30-40 1.07
40-50 1.14
50-60 1.09
60-70 1.07
70-80 1.15
80-90 1.12
90-100 1.75
ALL 1.30
90-95 1.28
95-99 1.90
Top 1% 2.13
0-10p 0.39
10-20 0.60
20-30 0.88
30-40 1.05
40-50 1.11
50-60 1.07
60-70 1.05
70-80 1.14
80-90 1.09
90-100 1.74
ALL 1.28
90-95 1.26
95-99 1.88
Top 1% 2.14
Loading

0 comments on commit 8b845d1

Please sign in to comment.