Announcing the R Election Analysis Contest

March 28, 2016

(This article was first published on R –, and kindly contributed to R-bloggers)

Today I am happy to announce the R Election Analysis Contest. The goal of the contest is to encourage and promote high quality reproducible research in R that focuses on elections. The winner will be featured on my blog and receive a free copy of my course Mapmaking in R with Choroplethr as well as a copy of Hadley Wickham’s book Advanced R.

Why a contest?

As I write this, the US Presidential Primary is dominating the news. What strikes me about the news is how analytical the discussion is. Major themes seem to be:

  • The demographics of each voting region
  • How different demographics are attracted to each party
  • How different demographics are attracted to each candidate within each party
  • How the above change over time
  • The math behind delegates and winning both primary nominations and general elections

A major interest I have is using R to verify claims that I hear in the media. I’ve been wanting to explore voting related issues in R for a while now. And when I read pieces by Julia Silge (1, 2, 3) and Duncan McIntosh (1) I see that I am not alone.

Rather than spending a week or two on my own analysis, I think that it would be better to run a contest. If the contest gets even a modest number of entries, then I will probably enjoy reading them more than I would enjoy writing my own.

How do I enter?

To be considered, your entry must:

  1. Be published online by Saturday April 16, 2016. If you have a blog, you can publish it there. You can also use rPubs, which is free.
  2. Leave a comment on this page with a description and link to your entry. I will personally read each entry.
  3. Your entry must contain an analysis that is both written in R and reproducible. That is, you must write code that works and use data that other people can load. Think of yourself as both writing an analysis and teaching other people how you did it.
  4. Winners will be announced on my blog on Monday, April 18 2016.


  1. Can I submit more than one analysis? Sure.
  2. Can I analyze an election other than the 2016 US Presidential election? Sure. It can be about a past election, an election for another office, or even an election in another country.
  3. Can I enter as a group? Sure. In the case that a group wins all members will get a free copy of Mapmaking in R with Choroplethr. But I can only afford to buy one copy of Advanced R.
  4. Do you have any ideas for analyses to do? Yes, but I’d rather not share them. I’m certain that someone reading this has an interesting idea that I haven’t even considered. I’d rather encourage that person to publish and submit their own analysis.
  5. How can I get in touch with you? Via twitter or email.
  6. How can I support the contest? Click the “share” buttons on this page to share it with your friends. Or click the button below to tweet about it:

Announcing the R Election Analysis Contest #rstats #ddj #opendata
Click To Tweet


The post Announcing the R Election Analysis Contest appeared first on

To leave a comment for the author, please follow the link and comment on their blog: R – offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.


Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)