divisor_methods {proporz} | R Documentation |
Divisor methods
Description
Functions to directly apply divisor apportionment methods instead
of calling proporz()
with a method parameter.
Usage
divisor_round(votes, n_seats, quorum = 0)
divisor_floor(votes, n_seats, quorum = 0)
divisor_harmonic(votes, n_seats, quorum = 0)
divisor_geometric(votes, n_seats, quorum = 0)
divisor_ceiling(votes, n_seats, quorum = 0)
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 quota of total votes within a district if less than 1 otherwise as number of votes. |
Details
Divisor methods are known under different names:
d'hondt, jefferson, hagenbach-bischoff: use
divisor_floor()
sainte-lague, webster: use
divisor_round()
adams: use
divisor_ceiling()
dean: use
divisor_harmonic()
huntington-hill, hill-huntington: use
divisor_geometric()
All divisor functions call highest_averages_method()
with a different sequence of
divisors.
Value
The number of seats per party as a vector
See Also
Examples
votes = c("Party A" = 690, "Party B" = 400,
"Party C" = 250, "Party D" = 120)
divisor_round(votes, 10)
divisor_floor(votes, 10)
divisor_ceiling(votes, 10)
divisor_ceiling(votes, 5)
divisor_geometric(votes, 10, quorum = 0.05)
divisor_harmonic(votes, 10)
[Package proporz version 1.5.0 Index]