Other packages > Find by keyword >

pref  

Preference Voting with Explanatory Graphics
View on CRAN: Click here


Download and install pref package within the R console
Install from CRAN:
install.packages("pref")

Install from Github:
library("remotes")
install_github("cran/pref")

Install by package version:
library("remotes")
install_version("pref", "0.4.0")



Attach the package and use:
library("pref")
Maintained by
Denis Mollison
[Scholar Profile | Author Map]
First Published: 2024-02-02
Latest Update: 2024-02-02
Description:
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) , Hill, David (2006) , Mollison, Denis (2023) , (see also the package manual pref_pkg_manual.pdf).
How to cite:
Denis Mollison (2024). pref: Preference Voting with Explanatory Graphics. R package version 0.4.0, https://cran.r-project.org/web/packages/pref. Accessed 10 Apr. 2025.
Previous versions and publish date:
No previous versions
Other packages that cited pref R package
View pref citation profile
Other R packages that pref depends, imports, suggests or enhances
Complete documentation for pref
Functions, R codes and Examples using the pref R package
Some associated functions: c99 . cnc17 . hc12 . j02 . nws17 . p17 . pref.data . stv . stv.plots . stv.wig . y12 . 
Some associated R codes: c99.R . cnc17.R . functions_input.R . functions_meek.R . functions_output.R . hc12.R . j02.R . nws17.R . p17.R . pref_data.R . stv.R . stv_plots.R . stv_wig.R . y12.R .  Full pref package functions and examples
Downloads during the last 30 days
03/1103/1203/1303/1403/1503/1603/1703/1803/1903/2003/2103/2203/2303/2403/2503/2603/2703/2803/2903/3003/3104/0104/0204/0304/0404/0504/0604/0704/0804/09Downloads for pref0246810121416TrendBars

Today's Hot Picks in Authors and Packages

GRNNs  
General Regression Neural Networks Package
This General Regression Neural Networks Package uses various distance functions. It was motivated b ...
Download / Learn more Package Citations See dependency  
txtq  
A Small Message Queue for Parallel Processes
This queue is a data structure that lets parallel processes send and receive messages, and it can he ...
Download / Learn more Package Citations See dependency  
RODBC  
ODBC Database Access
webglobe  
3D Interactive Globes
Displays geospatial data on an interactive 3D globe in the web browser. ...
Download / Learn more Package Citations See dependency  
xtermStyle  
Terminal Text Formatting Using Escape Sequences
Can be used for coloring output in terminals. It was developed for the standard Ubuntu terminal but ...
Download / Learn more Package Citations See dependency  
r2resize  
In-Text Resize for Images, Tables and Fancy Resize Containers in 'shiny', 'rmarkdown' and 'quarto' Documents
Automatic resizing toolbar for containers, images and tables. Various resizable or expandable contai ...
Download / Learn more Package Citations See dependency  

24,012

R Packages

207,311

Dependencies

64,867

Author Associations

24,013

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA