View source: R/elec_functions.R
maximumMarginBound | R Documentation |
This is one of the various bounding functions used to bound the maximum amount of error one could see in a single audit unit.
maximumMarginBound returns the maximum margin reduction for each precint by computing all margin reductions between pairs of winners & losers and then scaling by that pair's total margin to get a proportion and then taking the max of all such proportions (usually will be the last winner to the closest loser).
maximumMarginBound(Z, votes = NULL)
Z |
The elec.data object. |
votes |
The data.frame to compute the maximumMarginBounds for. If null, will return all bounds for all precincts in Z. |
Vector (of length of precincts) of maximum possible error for each precinct.
Luke W. Miratrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.