getEbsMargin: Updating Error Bounds and Margin Given the Observed Maximum

Description Usage Arguments Details Author(s) References Examples

View source: R/optStrat.R

Description

Gives updated values u and M given a value of the observed maximum t.

Usage

1
	getEbsMargin(Z, t, asTaint = FALSE, asNumber = FALSE, M = NULL)

Arguments

Z

A strat.elec.data object.

t

Value of the observed maximum, either as the MRO, as taint, or as the overstatement of the margin in votes.

asTaint

Set asTaint = TRUE if t is the maximum observed taint.

asNumber

Set asNumber if t is the maximum observed overstatement of the margin in votes.

M

A priori margin. If NULL, M defaults to 1.

Details

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.

The output of getEbsMargin is a list consisting of

Author(s)

Mike Higgins, Hua Yang

References

M. Higgins, R. L. Rivest, P. B. Stark. Sharper p-Values for Stratified Election Audits

Examples

1
2

elec.strat documentation built on May 1, 2019, 8:39 p.m.