redist: Markov Chain Monte Carlo Methods for Redistricting Simulation

Enables researchers to sample redistricting plans from a pre- specified target distribution using a Markov Chain Monte Carlo algorithm. The package allows for the implementation of various constraints in the redistricting process such as geographic compactness and population parity requirements. The algorithm also can be used in combination with efficient simulation methods such as simulated and parallel tempering algorithms. Tools for analysis such as inverse probability reweighting and plotting functionality are included. The package implements methods described in Fifield, Higgins, Imai and Tarr (2016) ``A New Automated Redistricting Simulator Using Markov Chain Monte Carlo,'' working paper available at <http://http://imai.princeton.edu/ research/files/redist.pdf>.

Install the latest version of this package by entering the following in R:
install.packages("redist")
AuthorBen Fifield <bfifield@princeton.edu>, Alexander Tarr <atarr@princeton.edu>, Michael Higgins <mikehiggins@k-state.edu>, and Kosuke Imai <kimai@princeton.edu>
Date of publication2017-03-15 05:25:37
MaintainerBen Fifield <bfifield@princeton.edu>
LicenseGPL (>= 2)
Version1.3-1

View on CRAN

Files

inst
inst/CITATION
src
src/Makevars
src/sw_mh_alg.cpp
src/constraint_calc_helper.cpp
src/make_swaps_helper.h
src/redist_init.c
src/rsg.cpp
src/check_contiguity.cpp
src/sw_mh_helper.cpp
src/check_contiguity.h
src/sw_mh_helper.h
src/make_swaps_helper.cpp
src/redist_analysis.cpp
src/constraint_calc_helper.h
src/rsg.h
src/enumerate.cpp
src/Makevars.win
src/RcppExports.cpp
src/redist_analysis.h
NAMESPACE
demo
demo/00Index
demo/fig4.R
data
data/algdat.p20.rda
data/algdat.pfull.rda
data/datalist
data/algdat.p10.rda
R
R/enumerate.R R/redist-package.R R/redistMPI.R R/rsg.R R/data.R R/RcppExports.R R/redist.R R/redist_findparams.R
MD5
DESCRIPTION
ChangeLog
man
man/redist.enumerate.Rd man/redist.diagplot.Rd man/redist.mcmc.Rd man/redist.mcmc.mpi.Rd man/redist.ipw.Rd man/redist.rsg.Rd man/algdat.pfull.Rd man/redist.combine.Rd man/algdat.p10.Rd man/redist.segcalc.Rd man/redist-package.Rd man/redist.combine.mpi.Rd man/redist.findparams.Rd man/algdat.p20.Rd

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.