elec0.1.2.2 package

Collection of Functions for Statistical Election Audits

AuditErrors

Functions that Compute Error Levels Given Audit Data

CAST.audit

Given audit data, compute p.values and all that.

audit.plan

Audit Plans for CAST and Trinomial Methods

audit.totals.to.OS

Converting total vote counts to Over Statements

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'. ...

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-package

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.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.cartoon

Make the cartoon example from the CAST paper as a voter data matrix.

make.opt.packed.bad

make.truth.opt.bad

make.random.truth

making fake truth for electios

make.sample.from.totals

Make sample from vote totals (for simulations)

make.sample

Generate fake election results for simulation studies

make.truth

Make baseline truth for simulations

maximumMarginBound

Election Audit Error Bound Functions

opt.sample.size

KM Audit Sample Size Calc

print.audit.plan.KM

Pretty print KM audit plan

sim.race

Simulate CAST audits to assess performance

simulateIt

simulate KM audits

stark.test

Workhorse driver for stark.test

tri.audit.sim

tri.audit.sim

tri.calc.sample

Calculate needed sample size for election auditing using the Trinomial...

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

This is a (somewhat bizarre) collection of functions written to do various sorts of statistical election audits. There are also functions to generate simulated voting data, including methods to simulation different types of voting errors which allow for simulations for checking the characteristics of these methods.

  • Maintainer: Luke Mirarix
  • License: GPL (>= 2)
  • Last published: 2022-04-26