Learn R Programming

SciencesPo (version 1.3.9)

gallagher: Gallagher Index

Description

Calculates the Gallagher index of LSq index.

Usage

gallagher(v, s, ...)

gallagher(v, s, ...)

Arguments

v
A numeric vector of data values for votes each political party obtained.
s
A numeric vector of data values for seats each political party obtained, the election outcome as seats.
...
Additional arguements (currently ignored)

Value

  • A single score (The Gallagher's Representation Score.) given the votes each party received and seats obtained.

Details

The representation score is calculated as: sqrt(sum((Z-R)^2)/2).

References

Gallagher, M. (1991) Proportionality, disproportionality and electoral systems. Electoral Studies 10(1):33-51.

See Also

cox.shugart, inv.cox.shugart, politicalDiversity, grofman, farina, lijphart. For more details see the Indices vignette: vignette("Indices", package = "SciencesPo")

Examples

Run this code
# 2012 Queensland state elecion
pvotes= c(49.65, 26.66, 11.5, 7.53, 3.16, 1.47)
pseats = c(87.64, 7.87, 2.25, 0.00, 2.25, 0.00)

gallagher(pvotes, pseats)

Run the code above in your browser using DataLab