hiper {Relectoral} | R Documentation |
Voting Dimension Index. Hyperfractionality index (electoral and parliamentary) (I)
Description
The hyperfractionality index, proposed by Kesselman (1996) and Wilden (1991), is another indicator used to measure the number of parties that are relevant in any type of election. This index is very sensitive to the presence of small parties since it gives them more relevance than they really have. The mathematical formula used to calculate the value of this index is as follows:
I=exp(-\sum p_{i}ln(p_{i}))
for i = 1, 2, \ldots,n
and p_i>0 the percentages (as parts per unit) of votes or seats of the party i
Usage
hiper(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 a dataframe, with the columns "electoral" and "parliamentary" to store the value of the hyperfractionality index in the electoral or parliamentary way respectively
Examples
hiper(c(3947,3189,1971,466,345,82),c(184,99,44,10,1,0))