KM.audit: KM Audit Calculator

Description Usage Arguments Details Value Author(s) References

View source: R/KM_package.R

Description

Do a KM audit given a specified list of audited batches for a specified election.

Usage

1
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


elec documentation built on May 30, 2017, 5:51 a.m.