TAXSIM emulator using the PolicyEngine US federal and state tax calculator
The emulator takes a .csv file in the form of a csv. This is the same form of input that Taxsim-35 takes.
Open your terminal in the parent directory
- To install this package
pip install -e .
- to execute the simulation, run
python policyengine_taxsim/cli.py resources/taxsim35/taxsim_input.csv
Output will be generated as output.csv
in the same directory
For directly installing from pip
You can install through to execute directly
pip install git+https://github.com/PolicyEngine/policyengine-taxsim.git
input file:
- taxsimid
- year
- state
- mstat (only 1 (single) and 2 (joint) filing options work)
- page (age of primary taxpayer)
- sage (age of spouse)
- depx (number of dependents)
- age1 (age of first dependent)
- age2 (age of second dependent)
- age3 (age of third dependent)
- pwages (wage of primary taxpayer)
- swages (wage of spouse)
- psemp (self-employment income of primary taxpayer)
- ssemp (self-employment income of spouse)
- dividends (dividend income)
- intrec (taxable interest received)
- stcg (short-term capital gains)
- ltcg (long-term capital gains)
- pui (primary taxpayer unemployment compensation received)
- sui (spouse unemployment compensation received)
- proptax (real estate taxes paid)