Learn R Programming

SciencesPo (version 1.3.9)

grofman: Grofman Index

Description

Calculates the Grofman index of proportionality based on a vector of votes and a vector for the electoral outcome.

Usage

grofman(v, s, ...)

grofman(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 given the votes each party received and seats obtained.

References

Taagepera, R., and B. Grofman. Mapping the indices of seats-votes disproportionality and inter-election volatility. Party Politics 9, no. 6 (2003): 659-77.

See Also

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

Examples

Run this code
# 2012 Quebec provincial election:
pvotes = c(PQ=31.95, Lib=31.20, CAQ=27.05,QS=6.03,Option=1.89, Other=1.88)
pseats = c(PQ=54, Lib=50, CAQ=19, QS=2, Option=0, Other=0)

grofman(pvotes, pseats)

Run the code above in your browser using DataLab