/Elections-2012

Poll of polls and forecast of the Mexican presidential election

Primary LanguageJavaScript

Poll of polls of the 2012 Mexican presidential election

Execute run-all.R to recreate the analysis. Since the program uses JAGS you won't be able to run it using windows (I used Ubuntu to run the analysis)

If you want the interactive chart to work put the file clean-data/json.txt in the electometer/js/ directory and then view the file index.html in the electometer directory (may require a local http server to work properly).

This code is based in part on replication code provided by Simon Jackman available at his homepage.

Poll data taken from ADN PolĂ­tico (with the exception of Indemerc, Votai and Mercadei)

References

Pooling the Polls Over an Election Campaign, Australian Journal of Political Science, 2005 V40(4):499-517