Course project for EN 553.732 Bayesian Statistics. We look at politicial gerrymandering of election results in the state of Ohio from a Bayesian perspective.
To use the code, you first need to download the data from this link. Note that this is the original version of the shapefile. The code is not compatible with the new updated version, since the new version has different fields.
The code can be run end-to-end by running the script gerry.R
. It performs MH sampling, creates redistricting maps, and saves them, along with results.
For any questions about the code, contact me at [email protected]
.