Skip to content
This repository has been archived by the owner on Aug 16, 2018. It is now read-only.


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

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:


Your output files will be in data/output.


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.


No description, website, or topics provided.






No releases published


No packages published