CRAN/E | redist

redist

Simulation Methods for Legislative Redistricting

Installation

About

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) and DeFord et al. (2021) doi:10.1162/99608f92.eb30390f, and the Short-burst optimization algorithm of Cannon et al. (2020) .

Citation redist citation info
alarm-redist.org/redist/
System requirements C++17, python
Bug report File report

Key Metrics

Version 4.2.0
R ≥ 3.5.0
Published 2024-01-13 104 days ago
Needs compilation? yes
License GPL-2
License GPL-3
CRAN checks redist results
Language en-US

Downloads

Yesterday 18 0%
Last 7 days 64 -37%
Last 30 days 381 -25%
Last 90 days 1.262 -14%
Last 365 days 5.064 -12%

Maintainer

Maintainer

Christopher T. Kenny

christopherkenny@fas.harvard.edu

Authors

Christopher T. Kenny

aut / cre

Cory McCartan

aut

Ben Fifield

aut

Kosuke Imai

aut

Jun Kawahara

ctb

Alexander Tarr

ctb

Michael Higgins

ctb

Material

README
NEWS
Reference manual
Package source

Vignettes

Common Arguments to 'redist' Functions
Redistricting with Flip MCMC
Map Pre-processing for Special Constraints
Introduction to redist

macOS

r-release

arm64

r-oldrel

arm64

r-release

x86_64

Windows

r-devel

x86_64

r-release

x86_64

r-oldrel

x86_64

Old Sources

redist archive

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

Suggests

coda
withr
loo
Rmpi
knitr
rmarkdown
rmapshaper
scales
units
RSpectra
testthat ≥ 3.0.0
spelling

LinkingTo

Rcpp
RcppArmadillo
RcppThread
cli
redistmetrics

Reverse Suggests

geomander
ggredist