part_egap_ep {redistmetrics} | R Documentation |
Calculate Efficiency Gap (Equal Population Assumption)
Description
Calculate Efficiency Gap (Equal Population Assumption)
Usage
part_egap_ep(plans, shp, dvote, rvote)
Arguments
plans |
A |
shp |
A |
dvote |
Unqouted name of column in |
rvote |
Unqouted name of column in |
Value
A numeric vector. Can be shaped into a district-by-plan matrix.
References
Nicholas O. Stephanopoulos. 2015. Partisan Gerrymandering and the Efficiency Gap. The University of Chicago Law Review, 82, Pp. 831-900.
Examples
data(nh)
data(nh_m)
# For a single plan:
part_egap_ep(plans = nh$r_2020, shp = nh, rvote = nrv, dvote = ndv)
# Or many plans:
part_egap_ep(plans = nh_m[, 3:5], shp = nh, rvote = nrv, dvote = ndv)
[Package redistmetrics version 1.0.7 Index]