Do a KM audit given a specified list of audited batches for a specified election.
KM.audit(
data,
U,
Z,
alpha = 0.25,
plot = FALSE,
debug = FALSE,
return.Ps = FALSE,
truncate.Ps = TRUE
)
Data frame holding audit data with taint and tot.votes as two columns.
Maximum total error bound (sum of e.max for all batches in race).
elec.data object for the race---the original reported results.
Risk.
Plot the audit?
Print debugging info
Return the stepwise P-values
Return the stepwise P-values only up to the audit stop point.
List of various things, including final p-value.
This will do a single-stage KM audit as a consequence of doing the stepwise version (since the single-stage is the same as the stepwise up to the number of batches audited).
WARNING: This function is not fully debugged!
Stark, Miratrix