taxdata icon indicating copy to clipboard operation
taxdata copied to clipboard

Impute W-2 Wage Share variable for Qualified Business Income Deduction

Open bodiyang opened this issue 7 months ago • 2 comments

Imputation for W-2 wage share variable PT_binc_w2_wages to improve the accuracy of Qualified Business Income Deduction (QBID) amounts produced by Tax-Calculator when using puf.csv input data. It is important to note that the logic of QBID calculation in Tax-Calculator is correct. What makes QBID results inaccurate when using the current version of puf.csv is that the value of PT_binc_w2_wages is zero for every filing unit in the current version of the puf.csv file. This PR is intended to fix this puf.csv data problem.

bodiyang avatar Jun 04 '25 20:06 bodiyang

@bodiyang Your changes look good to me. Can you run black -l 79 ./ from the top level taxdata directory (and then commit your modified tracked files) to fix the currently failing code formatting issue?

jdebacker avatar Jul 07 '25 18:07 jdebacker

@bodiyang Your changes look good to me. Can you run black -l 79 ./ from the top level taxdata directory (and then commit your modified tracked files) to fix the currently failing code formatting issue?

Will reformat the scripts.

I'm still solving some issues on incorporating the imputation script into the model. I'll notify when it's ready.

bodiyang avatar Jul 07 '25 18:07 bodiyang