maximumMarginBound {elec} | R Documentation |
Election Audit Error Bound Functions
Description
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).
Usage
maximumMarginBound(Z, votes = NULL)
Arguments
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. |
Value
Vector (of length of precincts) of maximum possible error for each precinct.
Author(s)
Luke W. Miratrix
[Package elec version 0.1.2.2 Index]