redist: Simulation Methods for Legislative Redistricting

Enables researchers to sample redistricting plans from a pre-specified target distribution using Sequential Monte Carlo and Markov Chain Monte Carlo algorithms. The package allows for the implementation of various constraints in the redistricting process such as geographic compactness and population parity requirements. Tools for analysis such as computation of various summary statistics and plotting functionality are also included. The package implements the SMC algorithm of McCartan and Imai (2023) <doi:10.1214/23-AOAS1763>, the enumeration algorithm of Fifield, Imai, Kawahara, and Kenny (2020) <doi:10.1080/2330443X.2020.1791773>, the Flip MCMC algorithm of Fifield, Higgins, Imai and Tarr (2020) <doi:10.1080/10618600.2020.1739532>, the Merge-split/Recombination algorithms of Carter et al. (2019) <doi:10.48550/arXiv.1911.01503> and DeFord et al. (2021) <doi:10.1162/99608f92.eb30390f>, and the Short-burst optimization algorithm of Cannon et al. (2020) <doi:10.48550/arXiv.2011.02288>.

Version: 4.2.0
Depends: R (≥ 3.5.0), redistmetrics (≥ 1.0.2)
Imports: Rcpp (≥ 0.11.0), rlang, cli (≥ 3.1.0), vctrs, tidyselect, stringr, dplyr (≥ 1.0.0), sf, doParallel, foreach, doRNG, servr, sys, ggplot2, patchwork
LinkingTo: Rcpp, RcppArmadillo, RcppThread, cli, redistmetrics
Suggests: coda, withr, loo, Rmpi, knitr, rmarkdown, rmapshaper, scales, units, RSpectra, testthat (≥ 3.0.0), spelling
Published: 2024-01-13
Author: Christopher T. Kenny [aut, cre], Cory McCartan [aut], Ben Fifield [aut], Kosuke Imai [aut], Jun Kawahara [ctb], Alexander Tarr [ctb], Michael Higgins [ctb]
Maintainer: Christopher T. Kenny <christopherkenny at fas.harvard.edu>
BugReports: https://github.com/alarm-redist/redist/issues
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
URL: https://alarm-redist.org/redist/
NeedsCompilation: yes
SystemRequirements: C++17, python
Language: en-US
Citation: redist citation info
Materials: README NEWS
CRAN checks: redist results

Documentation:

Reference manual: redist.pdf
Vignettes: Common Arguments to 'redist' Functions
Redistricting with Flip MCMC
Map Pre-processing for Special Constraints
Introduction to redist

Downloads:

Package source: redist_4.2.0.tar.gz
Windows binaries: r-devel: redist_4.2.0.zip, r-release: redist_4.2.0.zip, r-oldrel: redist_4.2.0.zip
macOS binaries: r-release (arm64): redist_4.2.0.tgz, r-oldrel (arm64): redist_4.2.0.tgz, r-release (x86_64): redist_4.2.0.tgz
Old sources: redist archive

Reverse dependencies:

Reverse imports: alarmdata
Reverse suggests: geomander, ggredist

Linking:

Please use the canonical form https://CRAN.R-project.org/package=redist to link to this page.