Skip to content

Commit d8be304

Browse files
Add SALT TE targeting
1 parent 63002aa commit d8be304

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

policyengine_us_data/utils/loss.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ def build_loss_matrix(dataset: type, time_period):
2727
taxable = df["total_income_tax"].values > 0
2828
soi_subset = get_soi(time_period)
2929
targets_array = []
30-
"""
3130
agi_level_targeted_variables = [
3231
"adjusted_gross_income",
3332
"count",
@@ -128,15 +127,13 @@ def build_loss_matrix(dataset: type, time_period):
128127
if label not in loss_matrix.columns:
129128
loss_matrix[label] = mask * values
130129
targets_array.append(row["Value"])
131-
"""
132130

133131
# Convert tax-unit level df to household-level df
134132

135133
from policyengine_us import Microsimulation
136134

137135
sim = Microsimulation(dataset=dataset)
138136
sim.default_calculation_period = time_period
139-
"""
140137
hh_id = sim.calculate("household_id", map_to="person")
141138
tax_unit_hh_id = sim.map_result(
142139
hh_id, "person", "tax_unit", how="value_from_first_person"
@@ -344,8 +341,6 @@ def build_loss_matrix(dataset: type, time_period):
344341
in_state_under_5, "person", "household"
345342
)
346343
targets_array.append(row["population_under_5"])
347-
348-
"""
349344

350345
# SALT tax expenditure targeting
351346

0 commit comments

Comments
 (0)