Single function for standard enumeration analysis, using ZDD methodology (Fifield, Imai, Kawahara, and Kenny 2020).
redist.enumpart(
adj,
unordered_path,
ordered_path,
out_path,
ndists = 2,
all = TRUE,
n = NULL,
weight_path = NULL,
lower = NULL,
upper = NULL,
init = FALSE,
read = TRUE,
total_pop = NULL
)
zero indexed adjacency list.
valid path to output the unordered adjacency map to
valid path to output the ordered adjacency map to
Valid path to output the enumerated districts
number of districts to enumerate
boolean. TRUE outputs all districts. FALSE samples n districts.
integer. Number of districts to output if all is FALSE. Returns districts selected from uniform random distribution.
A path (not including ".dat") to a space-delimited file containing a vector of
vertex weights, to be used along with lower
and upper
.
A lower bound on each partition's total weight, implemented by rejection sampling.
An upper bound on each partition's total weight.
Runs redist.init.enumpart. Defaults to false. Should be run on first use.
boolean. Defaults to TRUE. reads
the vector of precinct populations
List with entries district_membership and parity.
Fifield, B., Imai, K., Kawahara, J., & Kenny, C. T. (2020). The essential role of empirical validation in legislative redistricting simulation. Statistics and Public Policy, 7(1), 52-68.