L_max: Index of disproportionality of maximum deviation (Lmax)

Description Usage Arguments Value Examples

View source: R/Electoral_index.R

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[|Vi-Ei|]

for i = 1, 2, …,n

Usage

1
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

1
L_max(c(3947,3189,1971,466,345,82),c(184,99,44,10,1,0))

Relectoral documentation built on July 2, 2020, 2:31 a.m.