Description Usage Arguments Value Examples
View source: R/Electoral_index.R
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
1 | L_max(votes, seats)
|
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. |
Returns the value obtained for the index
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.