TAXSIM emulator using the PolicyEngine US federal and state tax calculator
git clone https://github.com/PolicyEngine/policyengine-taxsim
pip install -U policyengine-us
The emulator takes a .raw file in the form of a csv. This is the same form of input that Taxsim-35 takes.
In terminal, run python3 /Path/to/taxsim_emulator.py /Path/to/your/input_file.raw
input:
If the emulator and input file are in the current working directory, run:
python3 taxsim_emulator.py taxsim_input.raw
- 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)