Allocating Seats Methods and Party System Scores

Highest averages & largest remainders allocating seats methods and several party system scores. Implemented highest averages allocating seats methods are D'Hondt, Webster, Danish, Imperiali, Hill-Huntington, Dean, Modified Sainte-Lague, equal proportions and Adams. Implemented largest remainders allocating seats methods are Hare, Droop, Hangenbach-Bischoff, Imperial, modified Imperial and quotas & remainders. The main advantage of this package is that ties are always reported and not incorrectly allocated. Party system scores provided are competitiveness, concentration, effective number of parties, party nationalization score, party system nationalization score and volatility. References. Gallagher (1991) . Norris (2004, ISBN:0-521-82977-1). Consejo Nacional Electoral del Ecuador (2014)< http://cne.gob.ec/documents/Estadisticas/Atlas/ATLAS/CAPITULO%206%20web.pdf>. Laakso & Taagepera (1979) < http://journals.sagepub.com/doi/pdf/10.1177/001041407901200101>. Jones & Mainwaring (2003) < https://kellogg.nd.edu/sites/default/files/old_files/documents/304_0.pdf>. Pedersen (1979) < http://janda.org/c24/Readings/Pedersen/Pedersen.htm>.


The goal of electoral is compute highest averages largest remainders allocating seats methods and party system scores: competitiveness, concentration, effective number of parties, party nationalization score, party system nationalization score and volatility

Installation

You can install electoral from github with:

if (!require("devtools")) {
  install.packages("devtools")
  library("devtools")
}
devtools::install_github("albuja/electoral")

Examples

This is a basic example which shows you how to allocate seats by two common methods:

library(electoral)
 
seats_ha(parties = c("A", "B", "C"),
       votes = c(100, 150, 60),
       n_seats = 5,
       method = "dhondt")
#> [1] "Parties in tie:" "A"               "B"
 
seats_lr(parties = c("A", "B", "C"),
       votes = c(100, 150, 60),
       n_seats = 5,
       method = "hare")

This is a basic example which shows you how to compute effective number of parties:

library(electoral)
 
enp(votes = c(100, 150, 60))
#> [1] 2.66205

News

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("electoral")

0.1.1 by Jorge Albuja, 6 months ago


Browse source code at https://github.com/cran/electoral


Authors: Jorge Albuja


Documentation:   PDF Manual  


GPL-3 license


Imports dplyr, ineq, tibble


See at CRAN