SciencesPo (version 1.3.8)

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)

Arguments

v
A vector containing the votes for each political party.
s
A vector containing the election outcome as seats.

Value

  • A single score given the vector of votes and the vector for seats.

References

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

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 DataCamp Workspace