Description Usage Arguments Details Author(s) References Examples
Gives updated values u
and M
given a value of the observed maximum t
.
1 | getEbsMargin(Z, t, asTaint = FALSE, asNumber = FALSE, M = NULL)
|
Z |
A |
t |
Value of the observed maximum, either as the MRO, as taint, or as the overstatement of the margin in votes. |
asTaint |
Set |
asNumber |
Set |
M |
A priori margin. If NULL, |
Creates values u
and margin M
that can
be passed into the branch and bound function.
The following definitions for u
and M
are described
in Higgins, Rivest, Stark.
The quantity e.max
is obtained through maximumMarginBound
.
Default u = e.max - min(e.max, t). M = M - sum(min(e.max, t)).
asTaint = TRUE
u = e.max*(1 - t). M = M - sum(e.max*t)
asNumber = TRUE
Same as Default with t = t/Z$Margin
.
The output of getEbsMargin
is a list consisting of
M
The updated margin.
u
The updated value vector.
Mike Higgins, Hua Yang
M. Higgins, R. L. Rivest, P. B. Stark. Sharper p-Values for Stratified Election Audits
1 2 | data(MN_Senate_2006)
getEbsMargin(MN_Senate_2006.strat, t = 0.009, asTaint = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.