Learn R Programming

SciencesPo (version 1.3.9)

farina: Farina Index

Description

Calculates the Farina index also referred to as the cosine proportionality score based on a vector of votes and a vector for the electoral outcome.

Usage

farina(v, s, ...)

farina(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

Koppel, M., and A. Diskin. (2009) Measuring disproportionality, volatility and malapportionment: axiomatization and solutions. Social Choice and Welfare 33, no. 2: 281-286.

See Also

cox.shugart, inv.cox.shugart, politicalDiversity, grofman, gallagher, 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)

farina(pvotes, pseats)

Run the code above in your browser using DataLab