redist.parity: Calculates Maximum Deviation from Population Parity

View source: R/parity.R

redist.parityR Documentation

Calculates Maximum Deviation from Population Parity

Description

Computes the deviation from population parity from a plan. Higher values indicate that (at least) a single district in the map deviates from population parity. See Details.

Usage

redist.parity(plans, total_pop)

plan_parity(map, .data = cur_plans(), ...)

Arguments

plans

A matrix with one row for each precinct and one column for each map. Required.

total_pop

A numeric vector with the population for every precinct.

map

a redist_map object

.data

a redist_plans object

...

passed on to redist.parity

Details

With a map with pop representing the populations of each district, the deviation from population parity is given as max(abs(pop - parity) / parity) where parity = sum(pop)/length(pop) is the population size for the average district. Therefore, the metric can be thought of as the maximum percent deviation from equal population. For example, a value of 0.03 in this metric indicates that all districts are within 3 percent of population parity.

Value

numeric vector with the population parity for each column


redist documentation built on April 3, 2023, 5:46 p.m.