KM.audit {elec} | R Documentation |
KM Audit Calculator
Description
Do a KM audit given a specified list of audited batches for a specified election.
Usage
KM.audit(
data,
U,
Z,
alpha = 0.25,
plot = FALSE,
debug = FALSE,
return.Ps = FALSE,
truncate.Ps = TRUE
)
Arguments
data |
Data frame holding audit data with taint and tot.votes as two columns. |
U |
Maximum total error bound (sum of e.max for all batches in race). |
Z |
elec.data object for the race—the original reported results. |
alpha |
Risk. |
plot |
Plot the audit? |
debug |
Print debugging info |
return.Ps |
Return the stepwise P-values |
truncate.Ps |
Return the stepwise P-values only up to the audit stop point. |
Details
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!
Value
List of various things, including final p-value.
Author(s)
Miratrix
References
Stark, Miratrix
[Package elec version 0.1.2.2 Index]