Coder Social home page Coder Social logo

ahca's Introduction

What This Is

This script processes data from a Kaiser Family Foundation analysis of AHCA health insurance subsidies, 2016 county-level election results, USDA Rural-Urban Continuum Codes and county-level Census data from the 2015 ACS. Read the story here.

How To Use This

To run the analysis, first setup the repo.

mkvirtualenv -p `which python3` ahca
pip install -r requirements.txt

Then, use the process script to do everything:

bash process.sh

Your output files will be in data/output.

Methodology

Kaiser Family Foundation estimated differences in federal subsidies under the proposed Republican plan in 2020 at the county level. A caveat: Kaiser's analysis at the $20,000 income level excludes Alaska, Minnesota, New York and Washington, D.C. In 2020, those residents would be eligible for Medicaid (Alaska and Washington, D.C.) or the Basic Health Program (Minnesota and New York).

We grouped each county into one of three groups based on its USDA Rural-Urban Continuum Code. Metro counties had a code between 1 and 3, small town counties had a code between 4 and 7, rural counties had a code of either 8 or 9.

Election results data came from the Associated Press. These results were last updated on November 28, 2016, and are not the final certified results. The average vote calculations for rural, smaller and metro counties do not include Alaska, as the AP does not report election results on the county level in Alaska.

We calculated an average value for each county grouping, weighted by population. For each county, we multiplied the county's dollar difference for each age and income bracket by the county's population (according to 2015 American Community Survey 5-Year data) to create a weighted score. Then, for each county grouping (metro, small town, metro), we summed the weighted scores for each age and income bracket and divided it by the summed population of those county groupings.

ahca's People

Contributors

alykat avatar katiepark avatar tylerfisher avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.