redist.samplepart
uses a spanning tree method to randomly sample
redistricting plans. DEFUNCT, use redist_smc
instead.
redist.samplepart(
adj,
ndists,
total_pop = NULL,
pop_filter = FALSE,
pop_tol = 0.5,
nsims = 1000,
ncores = 1,
adjobj,
popvec,
pop_constraint,
contiguitymap = "rooks",
nsamp,
n_cores
)
An adjacency list, matrix, or object of class
SpatialPolygonsDataFrame
.
The desired number of congressional districts
Population vector for adjacency object. Provide if filtering by population
Boolean. Whether or not to filter on population parity. Default is FALSE.
Strength of population filter if filtering on distance to parity.
Number of samples to draw. Default is 1000.
Number of cores to parallelize over for parity calculation and compactness calculation. Default is 1.
Deprecated, use adj. An adjacency list, matrix, or object of class
SpatialPolygonsDataFrame
.
Deprecated, use total_pop. Population vector for adjacency object. Provide if filtering by population
Deprecated, use pop_tol. Strength of population filter if filtering on distance to parity.
Use queens or rooks distance criteria for generating an adjacency list from a "SpatialPolygonsDataFrame" data type. Default is "rooks".
Deprecated, use nsims. Number of samples to draw. Default is 1000.
Deprecated, use ncores. Number of cores to parallelize over for parity calculation and compactness calculation. Default is 1.
redist.samplepart
returns a list where the first entry is the
randomly sampled redistricting plan, and the second entry is the number of
possible redistricting plans from the implied spanning tree.