This is a preliminary plugin version of taxsim9. It runs locally on the computer and does not require a network connection to the NBER server. There is no conversion of the data to ASCII and no back-conversion of the results to .dta format. For these reasons it is much faster. It requires no .ado file and consists of a single compiled executable module "plugin9.plugin". Stata doesn't like plugins with the same name as ado programs.

Stata plugins can not read variables by name, or create new variables. So the 22 input variables are specified on the command line (in the order documented at on the web page) and the 41 calculated variables must be initialized before the plugin is called. For example

input x1-x22 1 1970 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 100000 12345 1989 13 3 1 0 30000 0 0 0 0 0 0 0 0 0 2000 0 1 0 -1000 0 end forvalues i=1/41 { gen v`i' = . } program plugin9, plugin using("./plugin9.plugin") plugin call plugin9 x1-x22 v1-v41 list returns federal income tax liability (fiitax in taxsim9.ado) as v4. You could also use the same variable names as taxsim9.ado, for input and output. The plugin only sees the position of the variable in the argument list, not the name. Therefore you could if you wished, continue to use the variables requested by taxsim9.ado: local txpydata taxsimid year state mstat depx agex pwages swages dividends otherprop \\\ pensions gssi transfers rentpaid proptax otheritem childcare ui depchild mortgage \\\ stcg ltcg local results taxsimid year state fiitax siitax fica frate srate ficar v10-v41 plugin call plugin9 `txpydata' `results'

There is a substantial speedup. taxsim9.ado over the LAN does about 1,000 records per second. The plugin does 50,000 per second.

Options are not allowed. State (v3) can not be -1.

The source code for the calculator is the same as taxsim9 on the website or ftp site, but there is interface code that could cause a difference. If you see differences of more than a dollar, please send me a sample record.

Currently I have only Linux 64 bit executables, but if someone has a Windows C compiler installed I would like to make this available for Windows or Mac.

Daniel Feenberg
617-863-0343


Last update by drf 11 November 2016