Calculate Mean Median Score
part_mean_median(plans, shp, dvote, rvote)
A redist_plans
object or plans_matrix where each row indicates a district assignment and each column is a plan.
A redist_map
object, tibble, or data frame containing other columns.
Unqouted name of column in shp
with total population.
Unqouted name of column in shp
with group population.
A numeric vector. Can be shaped into a district-by-plan matrix.
Michael D. McDonald and Robin E. Best. 2015. Unfair Partisan Gerrymanders in Politics and Law: A Diagnostic Applied to Six Cases. Election Law Journal: Rules, Politics, and Policy. 14. 4. Pp. 312-330.