Elections with Statistics

Understanding Elections Using Statistics
 

This page contains links to the R functions used in Understanding Elections through Statistics: Polling, Prediction, and Testing.

Download Here

To use this file (and these functions), run the following in R:

source("https://ews.kvasaheim.com/Rfctns/electionTesting.R")

Until I polish this enough to be a package hosted at CRAN, feel free to download this file and make good use of the functions.