KM.calc.sample: Calculate sample size for KM-audit.

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

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, ...)

Arguments

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.

Value

A audit.plan.KM object.

Author(s)

Based on the KM audit by Stark.

See Also

KM.audit

Examples

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 )

elec documentation built on May 2, 2019, 7:22 a.m.