Calculate the error amounts for all precincts in Z that were audited from the audit data, given as overstatement errors for all candidates.
compute.audit.errors uses the calc functions and the weight functions in a 1-2 combination.
calc.pairwise.e\_p() is often used with an err.override for simulation studies and whatnot to see what a fixed vote impact would have on taints for trinomial.
calc.overstatement.e_p(Z)calc.pairwise.e_p(Z, audit = NULL, err.override = NULL)
elec.data object
The audit object, if it is not in the Z object, or if some other object other than the one in the Z object is desired to be considered as the audit object. Used by the simulation functions to generate errors for some fixed amount of error in conjunction with the err.override.
Assume a baserate of this amount of error everywhere, ignoring audit data. If non-null, use this as the found error in votes rather than the actual errors found in the audit.
compute.audit.errors returns a new audit table from Z with two new columns, err and err.weighted, corresponding to the errors found in each audited precinct before and after the weight function has been applied to them.
calc.overstatement.e_p: Vector (of length of audited precincts) of found errors by precinct.
See audit.totals.to.OS
for a utility function that
handles processing of audit data.