View source: R/GallagherModInv.R
GallagherModInv | R Documentation |
Calculates a modified Gallagher index (inverted).
GallagherModInv(Z,R)
Z |
Population vector |
R |
Vector for the representatives |
The representation score is calculated as: 1 - sqrt(sum((Z.mod-R.mod)^2)/2), where Z.mod is Z/sum(Zi^2)^.5, and R.mod is R/sum(Ri^2)^.5
Representation score
Didier Ruedin
Koppel, M. and Diskin, A. (2009) Measuring disproportionality, volatility and malapportionment: axiomatization and solutions. Social Choice and Welfare 33(2):281-6.
GallagherInv
, GallagherMod
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.