compet_talisman: Compute Talismanic Redistricting Competitiveness Metric

View source: R/competitiveness.R

compet_talismanR Documentation

Compute Talismanic Redistricting Competitiveness Metric

Description

Compute Talismanic Redistricting Competitiveness Metric

Usage

compet_talisman(plans, shp, rvote, dvote, alpha = 1, beta = 1)

Arguments

plans

redist_plans object or plans_matrix where each row indicates a district assignment and each column is a plan

shp

redist_map object, tibble, or data frame containing other columns

rvote

unqouted name of column in shp with group population

dvote

unqouted name of column in shp with total population

alpha

Numeric scaling value

beta

Numeric scaling value

Value

numeric vector

References

Wendy K. Tam Cho and Yan Y. Liu Toward a Talismanic Redistricting Tool. Election Law Journal. 15, 4. Pp. 351-366.

Examples

data(nh)
data(nh_m)
# For a single plan:
compet_talisman(plans = nh$r_2020, shp = nh, rvote = nrv, dvote = ndv)

# Or many plans:
compet_talisman(plans = nh_m[, 3:5], shp = nh, rvote = nrv, dvote = ndv)


redistmetrics documentation built on April 11, 2022, 5:08 p.m.