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). Laakso & Taagepera (1979) < https://escholarship.org/uc/item/703827nv>. Jones & Mainwaring (2003) < https://kellogg.nd.edu/sites/default/files/old_files/documents/304_0.pdf>. Pedersen (1979) < https://janda.org/c24/Readings/Pedersen/Pedersen.htm>. Golosov (2010) . Golosov (2014) .


electoral

The goal of electoral package is provide simple functions to compute allocating seats methods and party system scores

Implemented allocating seats methods are:

For highest averages group: D'Hondt, Webster, Danish, Imperiali, Hill-Huntington, Dean, Modified Sainte-Lague, Equal proportions and Adams.

For largest remainders group: Hare, Droop, Hangenbach-Bischoff, Imperial, Modified Imperial, Quotas&Remainders.

Developed party system scores are:

Competitiveness, concentration, effective number of parties (ENP), party nationalization score (PNS), party system nationalization score (PSNS) and volatility. Effective number of parties implemented methods are Laakso-Taagepera and Golosov. Available party nationalization score and party system nationalization score methods are Jones-Mainwaring and Golosov.

Installation

You can install electoral directly from CRAN:

install.packages("electoral")

Or install it 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 (D'Hondt and Hare):

library(electoral)

seats(parties = c("A", "B", "C"),
       votes = c(100, 150, 60),
       n_seats = 5,
       method = "dhondt")

seats(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 using Laakso-Taagepera method:

library(electoral)

enp(votes = c(100, 150, 60))

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.4 by Jorge Albuja, a year ago


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


Authors: Jorge Albuja [aut, cre]


Documentation:   PDF Manual  


GPL-3 license


Imports dplyr, ineq, tibble


See at CRAN