View source: R/elec_functions.R
| compute.stark.t | R Documentation |
Compute the test statistic for election audits, essentially the largest error found in the audit, as measured by the passed functions and methods.
compute.stark.t(
Z,
bound.col,
calc.e_p = calc.pairwise.e_p,
w_p = weight.function("no.weight"),
err.override = NULL,
return.revised.audit = FALSE
)
Z |
If it already has an audit table with err and err.weighted then it will use those errors, otherwise it will compute them with compute.stark.err |
bound.col |
This is the vector containing the maximum number of votes possible in the various precincts. |
calc.e_p |
Function to compute e_p. Default is calc.pairwise.e_p. |
w_p |
The weight function to be applied to the precinct error. |
err.override |
If non-null, use this as the found error in votes rather than the actual errors found in the audit. |
return.revised.audit |
Return the updated audit frame with the error and weighted errors calculated. |
This is an older method that other methods sometime use—it is probably best ignored unless you have a good reason not to.
The test statistic, i.e. the maximum found error in the audit sample, as computed by calc.e\_p and weighted by w\_p.
Luke W. Miratrix
find.q stark.test
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.