Analysis of 2016 US presidential election by voting machine type.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Benjamin J. Radford
November 24, 2016

2016 Electiogeddon U.S. Map


This project includes code and data necessary to analyze the 2016 U.S. presidential election results by county. Particular attention is paid to identifying discrepencies in vote based on the voting technology utilized per county (electronic versus paper or optical ballot). Further analyses of these data are encouraged.


Model choices:

The dependent variable is the proportion of vote received by the GOP candidate, Donald Trump, per county. Predictors include electronic voting machines (indicator), population (logged), percent unemployment, percent college degree, and precent white. For simplicity the dependent variable is conceptualized as a continuous-valued response and no link function is used. Therefore, these are purely linear models and predicted values are not bound by 0 and 1 as proportions would be.

For the national models, linear mixed effects models are selected. Random intercepts are included per state. For that state-level models, standard linear regression models are selected.

For data merging issues, Alaska is omitted. For ease of visualization, Hawaii is also omitted.

A full write-up can be found at