largest_remainder_method: Largest remainder method
Description
Allocate seats based on the largest fractional remainder. The largest remainder method is
also known as: Hamilton, Hare-Niemeyer or Vinton method.
Usage
largest_remainder_method(votes, n_seats, quorum = 0)
Value
The number of seats per party as a vector
Arguments
votes
numeric vector with number of votes for each party
n_seats
total number of seats
quorum
Vote threshold a party must reach. Used as fraction of total
votes within if less than 1 otherwise as number
of votes.
Details
The numbers of votes for each party is divided by a quota representing the number of
votes required for a seat. Then, each party receives the rounded down quota value as
seats. The remaining seats are given to the party with the largest remainder until all
seats have been distributed.