Description Usage Arguments Value Examples
View source: R/Electoral_index.R
This indicator (Laakso and Taagepera 1979) is complementary to the electoral fragmentation indicator, and its objective is to measure the number of parties that actually compete in an electoral process. The mathematical formula used to calculate this indicator is as follows:
N=1/sum(pi^2)
for i = 1, 2, …,n and p_i the percentages (as parts per unit) of votes or seats of the party i
1 | nep(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 index of the effective number of parties 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.