Sainte_Lague: Sainte-Lague index of disproportionality (SL)
Description
This index is designed to study the disproportionality of those electoral systems that use
the procedure of distribution of seats that has the same name (Sainte-Lague method). It should be noted
that this indicator takes into account the relative difference between the seats-votes of each party,
as well as that of the system as a whole. The formula used for its calculation is as follows:
$$SL=\sqrt{\sum\frac{(E_{i}-V_{i})^{2}}{V_{i}}}$$
for \(i = 1, 2, \ldots,n vi>0\)
Usage
Sainte_Lague(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.