Description Usage Arguments Value Examples
View source: R/Electoral_index.R
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(pi*ln(pi)))
for i = 1, 2, …,n and p_i>0 the percentages (as parts per unit) of votes or seats of the party i
1 | hiper(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 a dataframe, with the columns "electoral" and "parliamentary" to store the value of the hyperfractionality index in the electoral or parliamentary way respectively
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.