Description Usage Arguments Value Author(s) See Also Examples

Calculate the size of a sample needed to certify a correct election if a KM audit is planned.

1 2 3 | ```
KM.calc.sample(Z, beta = 0.75, taint = 0, bound = c("e.plus", "WPM", "passed"))
## S3 method for class 'audit.plan.KM'
print(x, ...)
``` |

`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. |

`x` |
A audit.plan.KM object, such as one returned by KM.calc.sample. |

`...` |
Unused. |

A audit.plan.KM object.

Based on the KM audit by Stark.

KM.audit

1 2 3 | ```
data(santa.cruz)
Z = elec.data( santa.cruz, C.names=c("danner","leopold") )
KM.calc.sample( Z, beta=0.75, taint=0 )
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.