L_max {Relectoral} | R Documentation |
Index of disproportionality of maximum deviation (Lmax)
Description
An indicator of disproportionality that is appropriate for those systems that use the D'Hondt Law for seats distribution, as is the case in Spain (except in the Senate elections), presents the disadvantage that it only takes into account the difference between seats and votes for the most voted political force. The formula used for its calculation is as follows:
Lmax=max[|V_i-E_i]
for i = 1, 2, \ldots,n
Usage
L_max(votes, seats)
Arguments
votes |
It is a vector of integers, containing the votes of all the candidates. |
seats |
It is a vector of integers, containing the seats obtained by each of the candidates. |
Value
Returns the value obtained for the index
Examples
L_max(c(3947,3189,1971,466,345,82),c(184,99,44,10,1,0))
[Package Relectoral version 0.1.0 Index]