From 53eb764658382ae3a0de4e8ecd516841ba874911 Mon Sep 17 00:00:00 2001 From: PavelMakarchuk Date: Wed, 14 May 2025 16:32:09 -0400 Subject: [PATCH] Increase the tolerance for the JCT tax expenditure targets to 30% Fixes #244 --- policyengine_us_data/tests/test_datasets/test_enhanced_cps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policyengine_us_data/tests/test_datasets/test_enhanced_cps.py b/policyengine_us_data/tests/test_datasets/test_enhanced_cps.py index e8195142..a73241e1 100644 --- a/policyengine_us_data/tests/test_datasets/test_enhanced_cps.py +++ b/policyengine_us_data/tests/test_datasets/test_enhanced_cps.py @@ -84,7 +84,7 @@ def apply(self): # Calculate tax expenditure tax_expenditure = (income_tax_r - income_tax_b).sum() pct_error = abs((tax_expenditure - target) / target) - TOLERANCE = 0.2 + TOLERANCE = 0.3 print( f"{deduction} tax expenditure {tax_expenditure/1e9:.1f}bn differs from target {target/1e9:.1f}bn by {pct_error:.2%}"