Runs the enumpart algorithm
redist.run.enumpart(
ordered_path,
out_path,
ndists = 2,
all = TRUE,
n = NULL,
weight_path = NULL,
lower = NULL,
upper = NULL,
options = NULL
)
Path used in redist.prep.enumpart (not including ".dat")
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.
Additional enumpart arguments. Not recommended for use.
0 on success
Benjamin Fifield, Kosuke Imai, Jun Kawahara, and Christopher T Kenny. "The Essential Role of Empirical Validation in Legislative Redistricting Simulation." Forthcoming, Statistics and Public Policy.