View source: R/competitiveness.R
competitiveness | R Documentation |
Electoral competitiveness measures the difference in the percentages of valid votes obtained by the two most voted parties in a given territorial unit. It identifies the level of rivalry between the parties who occupied the first and second places in an election. Consejo Nacional Electoral del Ecuador (2014). The formula is:
Competitiveness = 1 - (p1 - p2)
where p1 and p2 are the 2 votes o seats proportions for the 2 most voted parties. Thus, it requires elections with at least 2 parties.
The index is a number from 0 to 1, 0 means no competitiveness (p1 = 1 and p2 = 0) and 1 means maximum competitiveness (p1 = p2).
Developed by Jorge Albuja Delgado (albuja@yahoo.com).
competitiveness(votes)
votes |
2_or_more-length vector of number/share of votes/seats per party |
A single numeric with electoral competitiveness value in the interval [0, 1]
competitiveness(votes = c(100, 150, 60))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.