A Stata Interface to TAXSIM for calculating US and State Income Tax Liabilities

taxsim35.ado is a Stata program for calculating US and State income tax liabilities from user supplied data. It does not do the calculation in Stata, or on the user's computer. Rather, it packages up the data and sends it to the taxsim server at the NBER office in Cambridge for processing, then loads the results into a Stata format dataset on the user's computer. The process is fast enough to be interactive for modest sized datasets, and will work for large files also. The program takes into account up to 31 income, deduction and personal characteristics in the calculation of taxes.

Install and Test

First, be very familiar with Internet Taxsim before using the Stata interface. Install taxsim35.ado with these Stata commands:

. net from "https://taxsim.nber.org/stata" . net describe taxsim35 . net install taxsim35 Be sure to read the instructions: .help taxsim35 will show the help file. After reading that carefully, run a small test: set obs 1 gen year=1970 gen mstat=2 gen ltcg=100000 taxsim35,replace list and confirm that fiitax is 16700.04.

-taxsim35.ado- uses the ssh protocol for communicating with our server. It will try ports 80 and 443 if 22 is blocked. If ssh is not available on your computer (such as Windows versions before Autum 2019) or blocked by a firewall, it is possible that the "ftp" option will help. There is also an "http" option but that may not work with large files.

Release Notes

-taxsim35- is compatible with taxsim27 and taxsim32 input files, but adds variables for the TCJA business tax deduction, the 2020 recovery rebate credit, the FICA adjustment for self-employment income and is more likely to avoid firewall issues. There are 3 new variables ag1,age2 and age3 for the ages of up to three dependents and 2 new variables for self-employment income. Taxsim will determine how many are eligible for EIC, CTC and CC credits. The variables for the number of dependents of various ages documented for ealier versions of taxsim are still respected for users with existing code. The change was made in response to the frequency of congress changing age thresholds.

There is also available taxsimlocal35.ado that runs locally on your computer. It is especially useful for very large datasets (millions of records) or highly confidential data.

Daniel Feenberg
617-863-0343
feenberg@nber.org


Last update 15 Nov 2021 by drf