Calculates the Farina index (cosine proportionality score)
Calculates the Farina index based on a population vector and a vector for the representatives
Vector for the representatives
The order of the groups in he population vector and the vector for the representatives needs to be the same. If there are groups A, B, C in the population, both vectors need to cover their proportion in the same order.
The Farina index is referred to as cosine proportionality scores by Koppel and Diskin (2009).
A single score given the population and representatives
Koppel, M., and A. Diskin. (2009) Measuring disproportionality, volatility and malapportionment: axiomatization and solutions. Social Choice and Welfare 33, no. 2: 281-286.
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.