pref: Preference Voting with Explanatory Graphics

Implements the Single Transferable Vote (STV) electoral system, with clear explanatory graphics. The core function stv() uses Meek's method, the purest expression of the simple principles of STV, but which requires electronic counting. It can handle votes expressing equal preferences for subsets of the candidates. A function stv.wig() implementing the Weighted Inclusive Gregory method, as used in Scottish council elections, is also provided, and with the same options, as described in the manual. The required vote data format is as an R list: a function pref.data() is provided to transform some commonly used data formats into this format. References for methodology: Hill, Wichmann and Woodall (1987) <doi:10.1093/comjnl/30.3.277>, Hill, David (2006) <https://www.votingmatters.org.uk/ISSUE22/I22P2.pdf>, Mollison, Denis (2023) <arXiv:2303.15310>, (see also the package manual pref_pkg_manual.pdf).

Getting started

Package details

AuthorDenis Mollison [aut, cre, cph] (<https://orcid.org/0000-0002-4014-3431>)
MaintainerDenis Mollison <denis.mollison@gmail.com>
LicenseMIT + file LICENSE
Version0.4.0
URL https://github.com/denismollison/pref
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("pref")

Try the pref package in your browser

Any scripts or data that you put into this service are public.

pref documentation built on May 29, 2024, 2:02 a.m.