SafeVote1.0.1 package

Election Vote Counting with Safety Features

approval

Count votes using the approval method

as.SafeRankExpt

as.SafeRankExpt()

assemble.args.for.check.score

undocumented internal method

assemble.args.for.check.stv

undocumented internal method

backwards.tiebreak

Undocumented internal method

check.nseats

parameter-checking method for nseats (internal)

check.ranking

check the validity of a partial ranking

check.votes.approval

undocumented internal method

check.votes.condorcet

undocumented internal method

check.votes.plurality

undocumented internal method

check.votes

undocumented internal method

check.votes.score

undocumented internal method

check.votes.stv

undocumented internal method

check.votes.tworound.runoff

undocumented internal method

combineRankings

the least upper bound on a pair of rankings

completeRankingTable

internal method to analyse the partial results of an stv() ballot coun...

condorcet

Count votes using the Condorcet voting method.

correct.ranking

Amend ballots with equal or incomplete preferences

dot-print.summary.SafeVote

.print method for summary object

dot-summary.SafeVote

summarises vote-totals for subsequent printing

election.info

prints the basic results of an election

extractMargins

extract margins from the results of a ballot count

extractRank

Extract a ranking vector by name from the results of a ballot count

forwards.tiebreak

Undocumented internal method

image.SafeVote.condorcet

The image function visualizes the joint distribution of two preference...

image.SafeVote.stv

visualisation of joint and marginal distributions in STV preferences

invalid.votes

Extracts the invalid.votes member (if any) from the result of a count

is.SafeRankExpt

is.SafeRankExpt()

is.valid.vote

undocumented internal method

loserMargin

Find a loser and their margin of victory

new_SafeRankExpt

Constructor for the results of a SafeRank experiment

ordered.preferences

Undocumented internal method

ordered.tiebreak

Undocumented internal method

plot.SafeRankExpt

plot() method for the result of an experiment with varying numbers of ...

plot.SafeVote.stv

plot() method for the result of an stv() ballot-count

plurality

Count votes using the plurality method

prepare.votes

Coerce input 'data' into a matrix

print.summary.SafeRankExpt

Print method for summary.SafeRankExpt

print.summary.SafeVote.approval

print method for summary object

print.summary.SafeVote.condorcet

print method for summary.SafeVote.condorcet

print.summary.SafeVote.plurality

print method for summary of plurality object

print.summary.SafeVote.score

print method for summary.score object

print.summary.SafeVote.stv

print() method for a summary() of a SafeVote result

rbind_SafeRankExpt

add a row to a SafeRankExpt object

readHil

read a set of ballots in .HIL format

remove.candidate

Remove a candidate, amending ballot papers as required

SafeVote-package

SafeVote: Election Vote Counting with Safety Features

score

Count votes using the score (or range) method.

solveTiebreak

Undocumented internal method, renamed from 'solve.tiebreak' to avoid c...

stv

Count preferential ballots using an STV method

summary.SafeRankExpt

summary method for SafeRankExpt

summary.SafeVote.approval

summary method for approval results

summary.SafeVote.condorcet

Summary method for condorcet() results

summary.SafeVote.plurality

summary method for plurality object

summary.SafeVote.score

summary method for score object

summary.SafeVote.stv

summary() method for a SafeVote result

sumOfVotes

internal method, computes column-sums

testAdditions

Test the sensitivity of a result to tactical voting.

testDeletions

Assess the safety of a preliminary result for an election

testFraction

Bootstrapping experiment, with fractional counts of a ballot box.

translate.ties

Undocumented internal method from original code

view

generic view() for classes defined in this package

view.SafeVote.approval

view method for approval object

view.SafeVote.condorcet

view method for SafeVote.condorcet

view.SafeVote.plurality

view method for plurality object

view.SafeVote.score

view method for score object

view.SafeVote.stv

view method for the result of an stv() ballot-count

winnerMargin

Find a winner and their margin of victory

Fork of 'vote_2.3-2', Raftery et al. (2021) <DOI:10.32614/RJ-2021-086>, with additional support for stochastic experimentation.

  • Maintainer: Clark Thomborson
  • License: GPL (>= 2)
  • Last published: 2024-10-05