diff --git a/README.md b/README.md index acefa4c5..d86108b4 100644 --- a/README.md +++ b/README.md @@ -8,19 +8,13 @@ For Tax-Calculator results generated when using these TMD input files, see [this folder](https://github.com/PSLmodels/Tax-Calculator/tree/master/taxcalc/cli/input_data_tests). -The **current TMD version is 2.1.3**, which was released on July 2, -2026, and is the same as TMD version 2.1.2 except that at least Tax-Calculator -version 6.7.1 (instead of 6.7.0) is required to generate the TMD files. -This new Tax-Calculator version uses a more refined refundable -credit claiming logic, which causes minor changes in the TMD input -data files generated by this repo (even after some recalibration of -the TMD data generation logic). [Tax-Calculator pull request -3087](https://github.com/PSLmodels/Tax-Calculator/pull/3087) shows the -small differences in baseline policy results when using the new TMD -2.1.3 input data files (instead of the old 2.1.2 input data files -generated using Tax-Calculator version 6.7.0). +The **current TMD version is 2.1.4**, which was released on July 13, +2026, and is the same as TMD version 2.1.3 except that a new version +of `scikit-learn` (1.9.0), which fixed a bug in its weighted imputation +algorithm, is used (see #534 for details). Tax-Calculator version 6.7.1 +or higher is required to generate the TMD files. -When using version 2.1.3 to generate **sub-national weights**, there +When using version 2.1.4 to generate **sub-national weights**, there will be (presumably small) differences from the sub-national weights generated using earlier versions; however, the sub-national weights fingerprints have not yet been updated. diff --git a/setup.py b/setup.py index 5986288e..0f659952 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name="tmd", - version="2.1.3", + version="2.1.4", packages=find_packages(), python_requires=">=3.11,<3.14", install_requires=[ @@ -10,7 +10,7 @@ "numpy", "pandas>=3.0.2", "clarabel", - "scikit-learn==1.8.0", + "scikit-learn>=1.9.0", "scipy", "xlrd", "openpyxl", diff --git a/tests/expected_tax_exp_2022_data b/tests/expected_tax_exp_2022_data index c21256f2..4c3999e6 100644 --- a/tests/expected_tax_exp_2022_data +++ b/tests/expected_tax_exp_2022_data @@ -1,4 +1,4 @@ -YR,KIND,EST= 2023 paytax 1428.8 +YR,KIND,EST= 2023 paytax 1431.0 YR,KIND,EST= 2023 iitax 2332.1 YR,KIND,EST= 2023 ctc 129.6 YR,KIND,EST= 2023 eitc 66.9 diff --git a/tests/fingerprints/tmd_file_fingerprint.json b/tests/fingerprints/tmd_file_fingerprint.json index 5be17097..c7172b38 100644 --- a/tests/fingerprints/tmd_file_fingerprint.json +++ b/tests/fingerprints/tmd_file_fingerprint.json @@ -12,9 +12,9 @@ "count": 215406, "max": 3.0, "min": 0.0, - "std": 0.9987814800996051, - "sum": 142379.0, - "weighted_sum": 85735572.20361999 + "std": 0.9987701329025814, + "sum": 142450.0, + "weighted_sum": 85738143.77895 }, "FLPDYR": { "count": 215406, @@ -22,7 +22,7 @@ "min": 2022.0, "std": 0.0, "sum": 435550932.0, - "weighted_sum": 382761222868.78345 + "weighted_sum": 382761531896.9072 }, "MARS": { "count": 215406, @@ -30,7 +30,7 @@ "min": 1.0, "std": 0.8282020202404673, "sum": 402554.0, - "weighted_sum": 326909697.41251 + "weighted_sum": 326909828.36244 }, "MIDR": { "count": 215406, @@ -54,7 +54,7 @@ "min": 0.0, "std": 738022.7660361654, "sum": 25230744106.0, - "weighted_sum": 284545792871.95056 + "weighted_sum": 284545791790.6523 }, "PT_ubia_property": { "count": 215406, @@ -70,7 +70,7 @@ "min": 1.0, "std": 62183.689036884665, "sum": 23200149864.0, - "weighted_sum": 17778059402472.64 + "weighted_sum": 17778067400072.246 }, "XTOT": { "count": 215406, @@ -78,7 +78,7 @@ "min": 0.0, "std": 1.3124219653287705, "sum": 487350.0, - "weighted_sum": 333711808.16421 + "weighted_sum": 333711944.55772996 }, "a_lineno": { "count": 215406, @@ -92,17 +92,17 @@ "count": 215406, "max": 85.0, "min": 0.0, - "std": 16.100489084798603, - "sum": 10433176.0, - "weighted_sum": 8639218596.36 + "std": 16.09984438084651, + "sum": 10432371.0, + "weighted_sum": 8639751238.79828 }, "age_spouse": { "count": 215406, "max": 85.0, "min": 0.0, - "std": 27.91592296312935, - "sum": 6305641.0, - "weighted_sum": 2889398450.2881403 + "std": 27.916711997352287, + "sum": 6306074.0, + "weighted_sum": 2889095329.16655 }, "agi_bin": { "count": 215406, @@ -116,9 +116,9 @@ "count": 215406, "max": 29216.0, "min": 0.0, - "std": 1595.8627950488794, - "sum": 119297952.0, - "weighted_sum": 92897076770.97449 + "std": 1592.0329443815228, + "sum": 119090124.0, + "weighted_sum": 92852075286.79953 }, "blind_head": { "count": 215406, @@ -126,7 +126,7 @@ "min": 0.0, "std": 0.039581154017892924, "sum": 338.0, - "weighted_sum": 1118623.8878600001 + "weighted_sum": 1118623.88756 }, "blind_spouse": { "count": 215406, @@ -150,31 +150,31 @@ "min": 0.0, "std": 0.18581976451020255, "sum": 207692.0, - "weighted_sum": 162125458.44985 + "weighted_sum": 162125611.28907 }, "e00200": { "count": 215406, "max": 158001246.0, "min": 0.0, - "std": 3839053.1721564913, - "sum": 135567863931.0, - "weighted_sum": 9725162003873.826 + "std": 3839053.1721390253, + "sum": 135567863916.0, + "weighted_sum": 9725182695674.55 }, "e00200p": { "count": 215406, "max": 146649912.0, "min": 0.0, - "std": 3074924.1228452236, - "sum": 100916502469.0, - "weighted_sum": 7577786495120.923 + "std": 3074914.3113661082, + "sum": 100898311877.0, + "weighted_sum": 7579075215308.498 }, "e00200s": { "count": 215406, "max": 131089978.0, "min": 0.0, - "std": 1407878.6473246966, - "sum": 34651361462.0, - "weighted_sum": 2147375508752.9038 + "std": 1400109.14616267, + "sum": 34669552039.0, + "weighted_sum": 2146107480366.0535 }, "e00300": { "count": 215406, @@ -182,7 +182,7 @@ "min": 0.0, "std": 711515.7478145547, "sum": 14959529704.0, - "weighted_sum": 134951542990.35658 + "weighted_sum": 134951541115.46298 }, "e00400": { "count": 215406, @@ -190,7 +190,7 @@ "min": 0.0, "std": 177878.5477018591, "sum": 4044728005.0, - "weighted_sum": 56474896652.24048 + "weighted_sum": 56474896533.26405 }, "e00600": { "count": 215406, @@ -198,7 +198,7 @@ "min": 0.0, "std": 1956187.9470606642, "sum": 41042242130.0, - "weighted_sum": 412899038495.56396 + "weighted_sum": 412899037058.77075 }, "e00650": { "count": 215406, @@ -206,7 +206,7 @@ "min": 0.0, "std": 1769967.4028097128, "sum": 32307241480.0, - "weighted_sum": 312655137165.66064 + "weighted_sum": 312655055848.84106 }, "e00700": { "count": 215406, @@ -214,7 +214,7 @@ "min": 0.0, "std": 122163.68274026675, "sum": 3050450092.0, - "weighted_sum": 45119021340.449356 + "weighted_sum": 45119118780.36163 }, "e00800": { "count": 215406, @@ -222,31 +222,31 @@ "min": 0.0, "std": 3180.2866308831267, "sum": 13169293.0, - "weighted_sum": 16700075900.090881 + "weighted_sum": 16700048280.87886 }, "e00900": { "count": 215406, "max": 26763122.0, "min": -50236735.0, - "std": 593980.892787206, - "sum": 5852882933.0, - "weighted_sum": 411465040368.8724 + "std": 593980.8927791707, + "sum": 5852882950.0, + "weighted_sum": 411464963089.448 }, "e00900p": { "count": 215406, "max": 26763122.0, "min": -43918428.0, - "std": 506741.67259713134, - "sum": 4481330664.0, - "weighted_sum": 315388176117.62933 + "std": 504529.10312050197, + "sum": 4491107577.0, + "weighted_sum": 315881538041.0559 }, "e00900s": { "count": 215406, "max": 18599368.0, "min": -33603257.0, - "std": 198793.2593952893, - "sum": 1371552269.0, - "weighted_sum": 96076864251.24304 + "std": 203979.42106397435, + "sum": 1361775373.0, + "weighted_sum": 95583425048.39212 }, "e01100": { "count": 215406, @@ -254,7 +254,7 @@ "min": 0.0, "std": 9339.827956357865, "sum": 39668789.0, - "weighted_sum": 12797168593.06063 + "weighted_sum": 12797168601.50802 }, "e01200": { "count": 215406, @@ -262,7 +262,7 @@ "min": -35655204.0, "std": 581187.8093420502, "sum": 3520229342.0, - "weighted_sum": -44829383000.59964 + "weighted_sum": -44829043054.08183 }, "e01400": { "count": 215406, @@ -270,7 +270,7 @@ "min": 0.0, "std": 83313.03949268202, "sum": 1945057159.0, - "weighted_sum": 440200588937.7682 + "weighted_sum": 440200589195.7326 }, "e01500": { "count": 215406, @@ -278,7 +278,7 @@ "min": 0.0, "std": 321276.0536523596, "sum": 10312022162.0, - "weighted_sum": 1535895660826.0308 + "weighted_sum": 1535895660025.8074 }, "e01700": { "count": 215406, @@ -286,7 +286,7 @@ "min": 0.0, "std": 56073.84955500843, "sum": 2182858490.0, - "weighted_sum": 915463678061.448 + "weighted_sum": 915470407082.593 }, "e02000": { "count": 215406, @@ -294,31 +294,31 @@ "min": -179684656.0, "std": 5277854.968724638, "sum": 133913081698.0, - "weighted_sum": 1147040579301.2886 + "weighted_sum": 1147041729077.4155 }, "e02100": { "count": 215406, "max": 18904982.0, "min": -2500.0, - "std": 136992.30868985172, - "sum": 640434462.0, - "weighted_sum": 7385115964.57203 + "std": 136992.30868331683, + "sum": 640434459.0, + "weighted_sum": 7385124587.248011 }, "e02100p": { "count": 215406, "max": 14541252.0, "min": -2500.0, - "std": 102256.54546505008, - "sum": 467305339.0, - "weighted_sum": 5709050675.40151 + "std": 102257.1305726688, + "sum": 467486981.0, + "weighted_sum": 5715832378.09269 }, "e02100s": { "count": 215406, "max": 15334893.0, "min": 0.0, - "std": 61975.111047554805, - "sum": 173129123.0, - "weighted_sum": 1676065289.17052 + "std": 61974.189270898925, + "sum": 172947478.0, + "weighted_sum": 1669292209.1553202 }, "e02300": { "count": 215406, @@ -326,7 +326,7 @@ "min": 0.0, "std": 1023.5341588284397, "sum": 26608633.0, - "weighted_sum": 30549981500.878757 + "weighted_sum": 30549981510.133217 }, "e02400": { "count": 215406, @@ -334,7 +334,7 @@ "min": 0.0, "std": 16833.073005545968, "sum": 1570649126.0, - "weighted_sum": 907955566709.915 + "weighted_sum": 907955566766.0044 }, "e03150": { "count": 215406, @@ -342,7 +342,7 @@ "min": 0.0, "std": 1828.0556572089072, "sum": 54493998.0, - "weighted_sum": 20428125724.84969 + "weighted_sum": 20427871431.579308 }, "e03210": { "count": 215406, @@ -350,7 +350,7 @@ "min": 0.0, "std": 390.7903928608949, "sum": 13910295.0, - "weighted_sum": 20142836991.75954 + "weighted_sum": 20142787317.74971 }, "e03220": { "count": 215406, @@ -358,7 +358,7 @@ "min": 0.0, "std": 48.101427381475595, "sum": 1361161.0, - "weighted_sum": 1356073271.74627 + "weighted_sum": 1356079399.50215 }, "e03230": { "count": 215406, @@ -366,7 +366,7 @@ "min": 0.0, "std": 307.1964479712465, "sum": 4572915.0, - "weighted_sum": 5548495926.49418 + "weighted_sum": 5548534919.49897 }, "e03240": { "count": 215406, @@ -374,7 +374,7 @@ "min": 0.0, "std": 182437.85999895292, "sum": 3064867345.0, - "weighted_sum": 18678170580.147522 + "weighted_sum": 18678156365.43213 }, "e03270": { "count": 215406, @@ -382,7 +382,7 @@ "min": 0.0, "std": 7474.891608176563, "sum": 500028611.0, - "weighted_sum": 42720018779.08941 + "weighted_sum": 42719852013.67217 }, "e03290": { "count": 215406, @@ -390,7 +390,7 @@ "min": 0.0, "std": 1368.5364243823437, "sum": 48966082.0, - "weighted_sum": 6495408671.2440195 + "weighted_sum": 6495312439.04607 }, "e03300": { "count": 215406, @@ -398,7 +398,7 @@ "min": 0.0, "std": 23852.364211193297, "sum": 813401582.0, - "weighted_sum": 32703384511.20062 + "weighted_sum": 32705722607.796867 }, "e03400": { "count": 215406, @@ -406,7 +406,7 @@ "min": 0.0, "std": 223.68813640780448, "sum": 688077.0, - "weighted_sum": 104022550.62924999 + "weighted_sum": 104021896.34163001 }, "e03500": { "count": 215406, @@ -414,7 +414,7 @@ "min": 0.0, "std": 1842.0380364235411, "sum": 14858202.0, - "weighted_sum": 10409757738.44643 + "weighted_sum": 10409580812.78941 }, "e07240": { "count": 215406, @@ -422,7 +422,7 @@ "min": 0.0, "std": 59.25325977470784, "sum": 1493106.0, - "weighted_sum": 2091676733.12201 + "weighted_sum": 2091671898.7636702 }, "e07260": { "count": 215406, @@ -430,7 +430,7 @@ "min": 0.0, "std": 4936.580157383907, "sum": 25664046.0, - "weighted_sum": 3151264753.2661705 + "weighted_sum": 3151268352.25751 }, "e07300": { "count": 215406, @@ -438,7 +438,7 @@ "min": 0.0, "std": 331914.1093186106, "sum": 4460805245.0, - "weighted_sum": 32587553041.959927 + "weighted_sum": 32587543143.034576 }, "e07400": { "count": 215406, @@ -446,7 +446,7 @@ "min": 0.0, "std": 71629.28084437056, "sum": 791134935.0, - "weighted_sum": 5230783495.69882 + "weighted_sum": 5230786518.25148 }, "e07600": { "count": 215406, @@ -454,7 +454,7 @@ "min": 0.0, "std": 15158.879617136348, "sum": 103747781.0, - "weighted_sum": 1246857035.26462 + "weighted_sum": 1246882681.7218099 }, "e09700": { "count": 215406, @@ -462,7 +462,7 @@ "min": 0.0, "std": 16.654462128951803, "sum": 12182.0, - "weighted_sum": 10162979.77321 + "weighted_sum": 10164612.137959998 }, "e09800": { "count": 215406, @@ -470,7 +470,7 @@ "min": 0.0, "std": 19.968495827240517, "sum": 27311.0, - "weighted_sum": 19608900.87124 + "weighted_sum": 19608947.19011 }, "e09900": { "count": 215406, @@ -478,7 +478,7 @@ "min": 0.0, "std": 1671.9111430115488, "sum": 21850771.0, - "weighted_sum": 8009679600.30994 + "weighted_sum": 8009703167.50112 }, "e11200": { "count": 215406, @@ -486,7 +486,7 @@ "min": 0.0, "std": 1602.2432126798278, "sum": 54810849.0, - "weighted_sum": 4749580536.80767 + "weighted_sum": 4749572851.39164 }, "e17500": { "count": 215406, @@ -494,7 +494,7 @@ "min": 0.0, "std": 10992.2441760073, "sum": 253887516.0, - "weighted_sum": 170531953057.54578 + "weighted_sum": 170532523226.90326 }, "e18400": { "count": 215406, @@ -502,7 +502,7 @@ "min": 0.0, "std": 1028639.751245572, "sum": 39805235783.0, - "weighted_sum": 527919598989.33875 + "weighted_sum": 527921331984.0021 }, "e18500": { "count": 215406, @@ -510,7 +510,7 @@ "min": 0.0, "std": 48506.15383085728, "sum": 3299136260.0, - "weighted_sum": 285657352345.84247 + "weighted_sum": 285657818286.45154 }, "e19200": { "count": 215406, @@ -518,7 +518,7 @@ "min": 0.0, "std": 222133.70367050217, "sum": 4654041060.0, - "weighted_sum": 377541565224.87 + "weighted_sum": 377542306256.27026 }, "e19800": { "count": 215406, @@ -526,7 +526,7 @@ "min": 0.0, "std": 682512.42798966, "sum": 12321188081.0, - "weighted_sum": 199380033756.82672 + "weighted_sum": 199380417440.07703 }, "e20100": { "count": 215406, @@ -534,7 +534,7 @@ "min": 0.0, "std": 1111662.5326055586, "sum": 14099697665.0, - "weighted_sum": 91120148411.78915 + "weighted_sum": 91120188244.59691 }, "e20400": { "count": 215406, @@ -542,7 +542,7 @@ "min": 0.0, "std": 321303.25320468727, "sum": 8435836745.0, - "weighted_sum": 232785046884.21927 + "weighted_sum": 232785297470.4699 }, "e24515": { "count": 215406, @@ -550,7 +550,7 @@ "min": 0.0, "std": 387620.6606805997, "sum": 4522551372.0, - "weighted_sum": 49147520496.65555 + "weighted_sum": 49147589075.63576 }, "e24518": { "count": 215406, @@ -558,7 +558,7 @@ "min": 0.0, "std": 271502.7385500248, "sum": 1694322554.0, - "weighted_sum": 8396106578.959559 + "weighted_sum": 8396123303.824571 }, "e26270": { "count": 215406, @@ -566,7 +566,7 @@ "min": -179393560.0, "std": 5144583.466543657, "sum": 123113181769.0, - "weighted_sum": 1032383256463.6031 + "weighted_sum": 1032383262878.1172 }, "e27200": { "count": 215406, @@ -574,7 +574,7 @@ "min": -788181.0, "std": 10925.637488850629, "sum": 41631327.0, - "weighted_sum": 5697297470.00618 + "weighted_sum": 5697435514.112961 }, "e32800": { "count": 215406, @@ -582,7 +582,7 @@ "min": 0.0, "std": 991.769628270785, "sum": 38622412.0, - "weighted_sum": 24873019035.53882 + "weighted_sum": 24873076181.17432 }, "e58990": { "count": 215406, @@ -590,7 +590,7 @@ "min": 0.0, "std": 145993.7909284945, "sum": 906483448.0, - "weighted_sum": 5986550406.453 + "weighted_sum": 5986561430.394481 }, "e62900": { "count": 215406, @@ -598,7 +598,7 @@ "min": 0.0, "std": 293731.1058035974, "sum": 3933115700.0, - "weighted_sum": 27963352411.37219 + "weighted_sum": 27963365737.19936 }, "e87521": { "count": 215406, @@ -606,7 +606,7 @@ "min": 0.0, "std": 669.7531095966863, "sum": 26086045.0, - "weighted_sum": 30558969872.564133 + "weighted_sum": 30559045903.31645 }, "e87530": { "count": 215406, @@ -614,7 +614,7 @@ "min": 0.0, "std": 307.1964479712465, "sum": 4572915.0, - "weighted_sum": 5548495926.49418 + "weighted_sum": 5548534919.49897 }, "elderly_dependents": { "count": 215406, @@ -622,15 +622,15 @@ "min": 0.0, "std": 0.01445226558392807, "sum": 43.0, - "weighted_sum": 146907.10287 + "weighted_sum": 146907.10285999998 }, "f2441": { "count": 215406, "max": 6.0, "min": 0.0, - "std": 0.8667430186714247, - "sum": 106299.0, - "weighted_sum": 59925111.659549996 + "std": 0.8669170780166894, + "sum": 106378.0, + "weighted_sum": 59928158.53937 }, "f6251": { "count": 215406, @@ -662,7 +662,7 @@ "min": 0.0, "std": 6942.556869952304, "sum": 13962177.0, - "weighted_sum": 2535861912.84233 + "weighted_sum": 2535883784.33591 }, "h_seq": { "count": 215406, @@ -716,49 +716,49 @@ "count": 215406, "max": 3.0, "min": 0.0, - "std": 0.20459343687731235, - "sum": 8750.0, - "weighted_sum": 5883444.77228 + "std": 0.20312979636268422, + "sum": 8695.0, + "weighted_sum": 6021242.868690001 }, "n21": { "count": 215406, "max": 3.0, "min": 0.0, - "std": 0.2652609705230011, - "sum": 13309.0, - "weighted_sum": 11545723.151420001 + "std": 0.26526939756265233, + "sum": 13285.0, + "weighted_sum": 11504743.507059999 }, "n24": { "count": 215406, "max": 7.0, "min": 0.0, - "std": 0.9595244713419911, - "sum": 129541.0, - "weighted_sum": 76558671.2613 + "std": 0.9596792515312577, + "sum": 129610.0, + "weighted_sum": 76560318.57421 }, "nu06": { "count": 215406, "max": 4.0, "min": 0.0, - "std": 0.7411420060949722, - "sum": 69927.0, - "weighted_sum": 32700911.001209997 + "std": 0.7405521836809181, + "sum": 69875.0, + "weighted_sum": 32773876.118869998 }, "nu13": { "count": 215406, "max": 6.0, "min": 0.0, - "std": 0.8875137813495467, - "sum": 107977.0, - "weighted_sum": 61258757.09811 + "std": 0.8876909396838132, + "sum": 108064.0, + "weighted_sum": 61262522.06414 }, "nu18": { "count": 215406, "max": 7.0, "min": 0.0, - "std": 0.9789126567621053, - "sum": 135060.0, - "weighted_sum": 80049591.00795999 + "std": 0.9789551114868931, + "sum": 135139.0, + "weighted_sum": 79952756.98947 }, "other_ben": { "count": 215406, @@ -770,11 +770,11 @@ }, "overtime_income": { "count": 215406, - "max": 35825020.0, + "max": 41543982.0, "min": 0.0, - "std": 200449.36764264424, - "sum": 2201369091.0, - "weighted_sum": 255224518789.46472 + "std": 242677.7426078435, + "sum": 2422966216.0, + "weighted_sum": 258136099437.569 }, "p08000": { "count": 215406, @@ -782,7 +782,7 @@ "min": 0.0, "std": 622.2480506114819, "sum": 7084352.0, - "weighted_sum": 1032781389.61988 + "weighted_sum": 1032791658.2455299 }, "p22250": { "count": 215406, @@ -790,7 +790,7 @@ "min": -127307103.0, "std": 1321365.3334108167, "sum": -1646865403.0, - "weighted_sum": -106922752645.619 + "weighted_sum": -106922880205.01129 }, "p23250": { "count": 215406, @@ -798,31 +798,31 @@ "min": -42756430.0, "std": 7031402.352506946, "sum": 230507622544.0, - "weighted_sum": 1126451742651.1536 + "weighted_sum": 1126452403463.1355 }, "pencon_p": { "count": 215406, "max": 27000.0, "min": 0.0, - "std": 6386.922516752437, - "sum": 690867044.0, - "weighted_sum": 263780602131.5962 + "std": 5492.544533068963, + "sum": 599531446.0, + "weighted_sum": 273883554982.32843 }, "pencon_s": { "count": 215406, "max": 27000.0, "min": 0.0, - "std": 4875.493021873777, - "sum": 376013951.0, - "weighted_sum": 76618038197.77611 + "std": 4375.300030445908, + "sum": 345125117.0, + "weighted_sum": 79642890563.57019 }, "s006": { "count": 215406, "max": 16580.29985, "min": 0.10804, - "std": 1088.9497886029867, - "sum": 189298329.80652, - "weighted_sum": 421785907934.16187 + "std": 1088.9490606747684, + "sum": 189298482.63942, + "weighted_sum": 421785835057.9484 }, "snap_ben": { "count": 215406, @@ -850,11 +850,11 @@ }, "tip_income": { "count": 215406, - "max": 9702508.0, + "max": 37670271.0, "min": 0.0, - "std": 60700.635785336664, - "sum": 384497356.0, - "weighted_sum": 64418247757.171974 + "std": 134938.31073606285, + "sum": 532488136.0, + "weighted_sum": 64827455990.87724 }, "vet_ben": { "count": 215406, @@ -874,11 +874,11 @@ } }, "metadata": { - "generated": "2026-06-30", + "generated": "2026-07-13", "n_columns": 109, "n_records": 215406, "scope": "tmd_file", - "taxcalc_version": "6.7.0a", + "taxcalc_version": "6.7.2", "taxyear": 2022 } } \ No newline at end of file diff --git a/tests/test_imputed_variables.py b/tests/test_imputed_variables.py index f8bf5241..45ac83ad 100644 --- a/tests/test_imputed_variables.py +++ b/tests/test_imputed_variables.py @@ -55,9 +55,9 @@ def actual_results(rdf, bdf): # https://taxpolicycenter.org/taxvox/ # budget-laws-tax-cuts-overtime-and- # tips-are-popular-few-will-benefit - "exp_totben_2022": 24.21, - "exp_affpct_2022": 8.91, - "exp_affben_2022": 1391, + "exp_totben_2022": 24.39, + "exp_affpct_2022": 8.78, + "exp_affben_2022": 1421, }, "TIP": { # new OBBBA tip income deduction "reform_dict": {"TipIncomeDed_c": {simyear: 0}}, @@ -72,9 +72,9 @@ def actual_results(rdf, bdf): # https://taxpolicycenter.org/taxvox/ # budget-laws-tax-cuts-overtime-and- # tips-are-popular-few-will-benefit - "exp_totben_2022": 7.00, + "exp_totben_2022": 7.16, "exp_affpct_2022": 2.64, - "exp_affben_2022": 1359, + "exp_affben_2022": 1391, }, "ALI": { # new OBBBA auto loan interest deduction "reform_dict": {"AutoLoanInterestDed_c": {simyear: 0}}, @@ -87,9 +87,9 @@ def actual_results(rdf, bdf): # because the Tax Policy Center did not provide any # statistics for this new deduction. However, see the # following reform analysis for FOUR reforms. - "exp_totben_2022": 8.01, - "exp_affpct_2022": 12.81, - "exp_affben_2022": 319, + "exp_totben_2022": 8.14, + "exp_affpct_2022": 12.84, + "exp_affben_2022": 324, }, "ALL": { # above three deductions plus new OBBBA senior deduction "reform_dict": { @@ -107,9 +107,9 @@ def actual_results(rdf, bdf): # https://taxpolicycenter.org/model-estimates/T25-0257 # Note that the $1081 TPC estimate is derived by dividing # the all-unit average of $320 by the 0.296 affpct. - "exp_totben_2022": 59.56, - "exp_affpct_2022": 29.14, - "exp_affben_2022": 1046, + "exp_totben_2022": 60.03, + "exp_affpct_2022": 28.97, + "exp_affben_2022": 1061, }, } output_variables = [ diff --git a/tests/test_weights.py b/tests/test_weights.py index a5090498..014080e7 100644 --- a/tests/test_weights.py +++ b/tests/test_weights.py @@ -50,7 +50,7 @@ def test_weights(tmd_variables): "sdev": 1088.949, "min": 0.10804, "p25": 21.7881, - "p50": 396.825, + "p50": 396.865, "p75": 1437.48, "max": 16580.30, "sum_sq": 421785907934.2,