Learn R Programming

Relectoral (version 0.1.0)

fragmentacion_rae: Rae's fragmentation (electoral and parliamentary) vote dimension (F)

Description

This indicator seeks to summarize in one value the level of dispersion or concentration of political power, that is to say, whether or not the seats or votes received are concentrated in a reduced number of political parties. The values of the index vary between 0 and 1, so that a value of zero indicates no fragmentation (all the votes go to a single party), while a value close to one indicates strong electoral fragmentation

Este indicador pretende resumir en un valor el nivel de dispersi<U+00F3>n o concentraci<U+00F3>n del poder pol<U+00ED>tico, es decir y de forma resumida si se encuentra concentrado o no los esca<U+00F1>os o votos recibidos en una serie de partidos pol<U+00ED>tcos. Los valores del <U+00ED>ndice var<U+00ED>an entre 0 y 1, de forma que un valor cero indica no hay ninguna fragmentaci<U+00F3>n ( todos los votos van a un s<U+00F3>lo partido), mientras que un valor dercano a uno indica fuerte fragmentaci<U+00F3>n electoral

The formula used for its calculation is as follows:

$$1-\sum_{i}q_{i}^{2}$$ for \(i = 1, 2, \ldots,n \)

Where q_i are the proportions (as parts per unit) of the number of seats or votes (electoral or parliamentary indicator), of the votes obtained by each candidate.

Usage

fragmentacion_rae(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 respectively the value of the electoral or parliamentary fragmentation index.

Examples

Run this code
# NOT RUN {
fragmentacion_rae(c(3947,3189,1971,466,345,82),c(184,99,44,10,1,0))

# }

Run the code above in your browser using DataLab