KM.calc.sample | R Documentation |
Calculate the size of a sample needed to certify a correct election if a KM audit is planned.
KM.calc.sample(Z, beta = 0.75, taint = 0, bound = c("e.plus", "WPM", "passed"))
Z |
elec.data object |
beta |
Desired level of confidence. This is 1-risk, where risk is the maximum chance of not going to a full recount if the results are wrong. Note that in Stark's papers, the value of interest is typically risk, denoted $alpha$. |
taint |
Assumed taint. Taint is assumed to be the taint for all batches (very conservative). If taint=0 then we produce a good baseline. |
bound |
Type of bound on the maximum error one could find in a batch. |
A audit.plan.KM object.
Based on the KM audit by Stark.
KM.audit
data(santa.cruz) Z = elec.data( santa.cruz, C.names=c("danner","leopold") ) KM.calc.sample( Z, beta=0.75, taint=0 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.