Skip to content

Commit

Permalink
Merge pull request #2170 from martinholmer/add-validation-vars
Browse files Browse the repository at this point in the history
Add MTR variables to .out-taxcalc files and compare MTR variables
  • Loading branch information
martinholmer authored Dec 12, 2018
2 parents 5c950f8 + 30f6345 commit f5b668c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions taxcalc/validation/taxsim/a17.taxdiffs-expect
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
TAXDIFF:ovar,#diffs,#smdiffs,maxdiff[id]= 9 109 0 0.90 [88]
TAXDIFF:ovar,#diffs,#smdiffs,maxdiff[id]= 27 65 65 -0.01 [1929]
TAXDIFF:ovar,#diffs,#smdiffs,maxdiff[id]= 28 29 29 -0.01 [2188]
TAXDIFF:ovar,#diffs,#smdiffs,maxdiff[id]= 4 54 54 -0.01 [237]
2 changes: 2 additions & 0 deletions taxcalc/validation/taxsim/b17.taxdiffs-expect
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
TAXDIFF:ovar,#diffs,#smdiffs,maxdiff[id]= 7 2 0 -0.34 [97290]
TAXDIFF:ovar,#diffs,#smdiffs,maxdiff[id]= 9 109 0 0.90 [88]
TAXDIFF:ovar,#diffs,#smdiffs,maxdiff[id]= 27 166 166 0.01 [11]
TAXDIFF:ovar,#diffs,#smdiffs,maxdiff[id]= 28 660 660 -0.01 [72]
TAXDIFF:ovar,#diffs,#smdiffs,maxdiff[id]= 4 131 131 -0.01 [72]
4 changes: 2 additions & 2 deletions taxcalc/validation/taxsim/process_taxcalc_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ def extract_output(out):
ovar[4] = out['iitax'] # federal income tax liability
ovar[5] = 0.0 # no state income tax calculation
ovar[6] = out['payrolltax'] # ee+er for OASDI+HI
ovar[7] = 0.0 # marginal federal income tax rate as percent
ovar[7] = out['mtr_inctax'] # marginal federal income tax rate as percent
ovar[8] = 0.0 # no state income tax calculation
ovar[9] = 0.0 # marginal payroll tax rate as percent
ovar[9] = out['mtr_paytax'] # marginal payroll tax rate as percent
ovar[10] = out['c00100'] # federal AGI
ovar[11] = out['e02300'] # UI benefits in AGI
ovar[12] = out['c02500'] # OASDI benefits in AGI
Expand Down
2 changes: 2 additions & 0 deletions taxcalc/validation/taxsim/taxdiffs.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ if { $ovar4 == 1 } {
exit 0
}
taxdiff $awkfilename 6 $out1_filename $out2_filename $dump
taxdiff $awkfilename 7 $out1_filename $out2_filename $dump
taxdiff $awkfilename 9 $out1_filename $out2_filename $dump
taxdiff $awkfilename 10 $out1_filename $out2_filename $dump
taxdiff $awkfilename 11 $out1_filename $out2_filename $dump
taxdiff $awkfilename 12 $out1_filename $out2_filename $dump
Expand Down

0 comments on commit f5b668c

Please sign in to comment.