Skip to content

Commit

Permalink
Merge pull request #49 from PSLmodels/dataset-update-4
Browse files Browse the repository at this point in the history
Dataset update
  • Loading branch information
nikhilwoodruff authored Apr 23, 2024
2 parents 5fa304c + eb890f8 commit cacf608
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions tax_microdata_benchmarking/adjust_qbi.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ def add_pt_w2_wages(df, time_period: int, verbose: bool = True):

target = (
QBID_TOTAL_21
* qbid_tax_expenditures[
time_period + 1
] # JCT figures are one year behind TC
* qbid_tax_expenditures[time_period]
/ qbid_tax_expenditures[2021]
)

Expand Down
4 changes: 2 additions & 2 deletions tax_microdata_benchmarking/create_flat_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ def create_stacked_flat_file(
+ stacked_file.e27200,
)
stacked_file["PT_binc_w2_wages"] = (
qbi * 0.357
qbi * 0.314 # Solved in 2021 using adjust_qbi.py
) # Solved in 2021 using adjust_qbi.py
input_data = tc.Records(data=stacked_file, start_year=target_year)
policy = tc.Policy()
Expand Down Expand Up @@ -835,7 +835,7 @@ def summary_analytics(df):


def create_all_files():
PRIORITY_YEARS = [2021, 2015, 2026, 2023]
PRIORITY_YEARS = [2021, 2023, 2026, 2015]
REMAINING_YEARS = [
year for year in range(2015, 2027) if year not in PRIORITY_YEARS
]
Expand Down

0 comments on commit cacf608

Please sign in to comment.