redist.parity | R Documentation |
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.
redist.parity(plans, total_pop)
plan_parity(map, .data = pl(), ...)
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 |
.data |
a |
... |
passed on to |
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.
numeric vector with the population parity for each column
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.