Coder Social home page Coder Social logo

puma-to-taxsim's Introduction

Calculate household tax liabilities for PUMA data

The NBER's TAXSIM simulator allows users to estimate federal and state income taxes, and FICA (payroll) taxes, for taxpayers. To calculate taxes for multiple tax units, unsers can enter a text file with each line representing a tx unit. The file requires a specific format with 27 completed values.

The US Census's Public Use Microdata Areas (PUMA) dataset contains individual responses to the American Community Survey. These responses include household and individual income, the relationship between persons in the household, and a host of other variables.

We can estimate household tax liabilities by feeding PUMA data into the TAXSIM model; but the PUMA data must be heavily wrangled to achieve a format readable to the TAXSIM program. Wrangling includes creating taxpayer units from households, calculating taxable income for the taxpayer unit, determining the number of dependents, and estimating filing status.

This repo contains scripts that achieve the following:

  • Convert PUMA data into a dataset that can be feed into the TAXSIM program;
  • Take the output from the TAXSIM model and calculate aggregate household tax liabilities; and
  • Subtract household tax liabilities from household income to create a variable signifying household post-tax income.

The file nc_tax_liabilities.csv contains an example of the output. It shows the tax liabilities of all PUMA households in North Carolina from 2006 to 2017.

puma-to-taxsim's People

Contributors

shanejorr avatar forsythfutures avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.