Skip to content

Commit 0b3fe7f

Browse files
authored
Merge pull request #519 from PSLmodels/pin-to-taxcalc660
Pin `taxcalc` version to 6.6.0 in `setup.py`
2 parents 1357c4d + f9ae93f commit 0b3fe7f

5 files changed

Lines changed: 28 additions & 13 deletions

File tree

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,23 @@ For Tax-Calculator results generated when using these TMD input files,
88
see [this
99
folder](https://github.com/PSLmodels/Tax-Calculator/tree/master/taxcalc/cli/input_data_tests).
1010

11-
The **current TMD version is 2.0.0**, which was released on March 29, 2026,
12-
and includes the following significant improvements:
11+
The **current TMD version is 2.1.0**, which was released on May 22,
12+
2026, and is the same as TMD version 2.0.0 except that Tax-Calculator
13+
version 6.6.0 (instead of 6.5.3) is used to generate the TMD files.
14+
15+
The current TMD 2.1.0 version differs from the 2.0.0 version only
16+
slightly in the national weights (all the `WT*` columns in the
17+
`tmd_weights.csv.gz` file and just the `s006` variable in the
18+
`tmd.csv.gz` file); the non-weights input variables in the
19+
`tmd.csv.gz` file and the contents of `tmd_growfactors.csv` file are
20+
unchanged. When using version 2.1.0 to generate **sub-national
21+
weights**, there will be (presumably small) differences from the
22+
sub-national weights generated using version 2.0.0; however, the
23+
sub-national weights fingerprints have not been updated in this pull
24+
request.
25+
26+
The prior TMD 2.0.0 version included the following significant
27+
improvements:
1328

1429
- generate national, state, and Congressional district, input files
1530
for **2022**:

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
setup(
44
name="tmd",
5-
version="2.0.0",
5+
version="2.1.0",
66
packages=find_packages(),
77
python_requires=">=3.11,<3.14",
88
install_requires=[
9-
"taxcalc==6.5.3",
9+
"taxcalc==6.6.0",
1010
"numpy",
1111
"pandas>=3.0.2",
1212
"clarabel",

tests/expected_tax_exp_2022_data

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
YR,KIND,EST= 2023 paytax 1429.5
2-
YR,KIND,EST= 2023 iitax 2331.3
2+
YR,KIND,EST= 2023 iitax 2332.1
33
YR,KIND,EST= 2023 ctc 118.6
44
YR,KIND,EST= 2023 eitc 72.0
55
YR,KIND,EST= 2023 social_security_partial_taxability 46.8
66
YR,KIND,EST= 2023 niit -47.4
7-
YR,KIND,EST= 2023 cgqd_tax_preference 179.6
8-
YR,KIND,EST= 2023 qbid 55.9
7+
YR,KIND,EST= 2023 cgqd_tax_preference 179.8
8+
YR,KIND,EST= 2023 qbid 55.0
99
YR,KIND,EST= 2023 salt 23.8

tests/test_imputed_variables.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def actual_results(rdf, bdf):
5555
# https://taxpolicycenter.org/taxvox/
5656
# budget-laws-tax-cuts-overtime-and-
5757
# tips-are-popular-few-will-benefit
58-
"exp_totben_2022": 23.68,
58+
"exp_totben_2022": 23.71,
5959
"exp_affpct_2022": 8.56,
6060
"exp_affben_2022": 1413,
6161
},
@@ -72,9 +72,9 @@ def actual_results(rdf, bdf):
7272
# https://taxpolicycenter.org/taxvox/
7373
# budget-laws-tax-cuts-overtime-and-
7474
# tips-are-popular-few-will-benefit
75-
"exp_totben_2022": 7.08,
75+
"exp_totben_2022": 7.11,
7676
"exp_affpct_2022": 2.59,
77-
"exp_affben_2022": 1397,
77+
"exp_affben_2022": 1401,
7878
},
7979
"ALI": { # new OBBBA auto loan interest deduction
8080
"reform_dict": {"AutoLoanInterestDed_c": {simyear: 0}},
@@ -107,7 +107,7 @@ def actual_results(rdf, bdf):
107107
# https://taxpolicycenter.org/model-estimates/T25-0257
108108
# Note that the $1081 TPC estimate is derived by dividing
109109
# the all-unit average of $320 by the 0.296 affpct.
110-
"exp_totben_2022": 58.92,
110+
"exp_totben_2022": 58.97,
111111
"exp_affpct_2022": 28.24,
112112
"exp_affben_2022": 1065,
113113
},

tests/test_weights.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ def test_weights(tmd_variables):
5050
"sdev": 1092.99,
5151
"min": 0.10804,
5252
"p25": 21.8191,
53-
"p50": 398.084,
54-
"p75": 1437.77,
53+
"p50": 398.097,
54+
"p75": 1437.785,
5555
"max": 16580.3,
5656
"sum_sq": 424545077258.6,
5757
},

0 commit comments

Comments
 (0)