Description Usage Arguments Value Functions Indicator Examples
This index measures electoral disproportionality based on the result obtained in an election. It has the disadvantage that it is highly influenced by the number of small parties that compete in the elections. The formula used is as follows:
R = (1/n)*sum(|Vi-Ei|)
for i = 1, 2, …,n
To compute its value, an integer vector corresponding to the votes obtained by each party and another with the corresponding seats must be provided as parameters of the formula. The R code will be in charge of calculating the corresponding percentages to obtain the index.
1 | Rae(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
Rae
: indicators
NA
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.