Regardless of your political leanings, if you’re a data nerd, Election Night can be a very interesting time. Here are some R resources that might come in handy tonight.

Compare actual returns with forecasts. Sociologist Pierre-Antoine Kremp has implemented an election forecast model by statistician Drew Linzer in R. Now that Election Day is here, you might like to see how real results match up with that model as returns come in.

Kremp has created an R function to do just this, update_prob(), along with linking to files you need on GitHub. He explains how this all works in Updating the Forecast on Election Night with R.

To read this article in full or to leave a comment, please click here

Source: COMPUTER WORLD