Data analysis related to the 2016 presidential elections
R
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
DemPrimaryData.csv
README.md
Rigged.R
earlycall.R
google.R
prediction.R

README.md

bernie2016

Data analysis related to the 2016 presidential elections

  • DemPrimaryData.csv Dataset containing results of primaries already held, demographic data from the US census, Google search volume, and other information. Primary results were last updated from https://en.wikipedia.org/wiki/Template:2016USDem on 17 Sep 2016.

  • Rigged.R Analysis script to replicate/critique FiveThirtyEight here:

http://fivethirtyeight.com/features/the-system-isnt-rigged-against-sanders/

  • google.R Code to use the gtrendsR package to download and format Google search volume data

  • predictions.R Code to run ridge regression with cross-validation, obtain predictions, and generate plots