nep: Voting dimension index. Effective number of political parties...

Description Usage Arguments Value Examples

View source: R/Electoral_index.R

Description

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

Usage

1
nep(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 index of the effective number of parties in the electoral or parliamentary way respectively

Examples

1
nep(c(3947,3189,1971,466,345,82),c(184,99,44,10,1,0))

Relectoral documentation built on July 2, 2020, 2:31 a.m.