Loos_Hanby: Disproportionality index of Loosemore and Hanby - 1971 ("LH")

Description Usage Arguments Value Examples

View source: R/Electoral_index.R

Description

Loosemore and Hanby disproportionality index ( 1971 ) aims to address the difficulties encountered with the Rae index. To calculate this disproportionality index, the absolute values of the differences between votes and seats are added together and the result is divided by two. The specific formula used is as follows: '

LH = (1/2)*sum(|Vi-Ei|)

for i = 1, 2, …,n

Usage

1
Loos_Hanby(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 the value obtained for the index

Examples

1
Loos_Hanby(c(1200, 30, 4000),c(10,6,8))

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