Collection of Functions for Statistical Election Audits


[Up] [Top]

Documentation for package ‘elec’ version 0.1.2.2

Help Pages

elec-package Statistical Election Audits Package
audit.plan Audit Plans for CAST and Trinomial Methods
audit.totals.to.OS Converting total vote counts to Over Statements
AuditErrors Functions that Compute Error Levels Given Audit Data
calc.overstatement.e_p Functions that Compute Error Levels Given Audit Data
calc.pairwise.e_p Functions that Compute Error Levels Given Audit Data
CAST.audit Given audit data, compute p.values and all that.
CAST.calc.opt.cut Calculate Optimal CAST plan
CAST.calc.sample Construct a sample for auditing using CAST
CAST.sample Sample from the various strata according to the schedule set by 'ns'. Ignore all precincts that are known (i.e., have been previously audited).
compute.audit.errors Calculate the measured error in each of the audited precicnts.
compute.stark.t compute.stark.t
countVotes countVotes
do.audit do.audit
elec Statistical Election Audits Package
elec.data core election audit data structure
find.q find.q
find.stark.SRS.p find.stark.SRS.p
find.stratification find.stratification
fractionOfVotesBound Fraction of votes bound
is.audit.plan Audit Plans for CAST and Trinomial Methods
is.audit.plan.tri Audit Plans for CAST and Trinomial Methods
is.elec.data Check if object is elec.data object
KM.audit KM Audit Calculator
KM.calc.sample Calculate sample size for KM-audit.
make.audit Make a fake audit given specified error for simulations
make.audit.from.Z Make a fake audit given specified error for simulations
make.cartoon Make the cartoon example from the CAST paper as a voter data matrix.
make.ok.truth Make baseline truth for simulations
make.opt.packed.bad make.truth.opt.bad
make.random.truth making fake truth for electios
make.sample Generate fake election results for simulation studies
make.sample.from.totals Make sample from vote totals (for simulations)
make.truth Make baseline truth for simulations
make.truth.ex.bad Make baseline truth for simulations
make.truth.opt.bad Make baseline truth for simulations
make.truth.opt.bad.strat Make baseline truth for simulations
marin Marin Measure B Reported Results
maximumMarginBound Election Audit Error Bound Functions
opt.sample.size KM Audit Sample Size Calc
print.audit.plan Audit Plans for CAST and Trinomial Methods
print.audit.plan.KM Pretty print KM audit plan
print.audit.plan.tri Audit Plans for CAST and Trinomial Methods
print.elec.data core election audit data structure
santa.cruz Santa Cruz Election Data
santa.cruz.audit Santa Cruz Election Data
sim.race Simulate CAST audits to assess performance
simulateIt simulate KM audits
stark.test Workhorse driver for stark.test
stark.test.Z Workhorse driver for stark.test
tri.audit.sim tri.audit.sim
tri.calc.sample Calculate needed sample size for election auditing using the Trinomial Bound
tri.sample Sample from List of Precincts PPEB
tri.sample.stats Utility function for tri.sample
trinomial.audit Conduct trinomial audit
trinomial.bound Auditing with the Trinomial Bound: trinomial.bound and trinomial.audit
truth.looker Looking at fake "truths" for election simulations
weight.function weight functions
yolo Yolo County, CA Election Data