upper_apportionment {proporz} | R Documentation |
Calculate upper apportionment
Description
In the upper apportionment, the seats for each party are computed with a highest averages method. This determines how many of all seats each party deserves due to the total of all their votes (that is the sum of the votes for all regional lists of that party). Analogical, the same highest averages method is used to determine how many of all seats each region deserves.
Usage
upper_apportionment(
votes_matrix,
district_seats,
use_list_votes = TRUE,
method = "round"
)
Arguments
votes_matrix |
Vote count matrix with votes by party in rows and votes by district in columns |
district_seats |
Vector defining the number of seats per district. Must be the same
length as |
use_list_votes |
By default ( |
method |
Apportion method that defines how seats are assigned, see |
Value
A named list with district seats (for votes_matrix
columns) and party seats
(for rows).
Note
The results from the upper apportionment are final results for the number of the seats of one party (and analogically for the number of the seats of one region) within the whole voting area, the lower apportionment will only determine where (which regions) the party seats are allocated. Thus, after the upper apportionment is done, the final strength of a party/region within the parliament is definite.
See Also
biproporz()
, lower_apportionment()
Examples
votes_matrix = matrix(c(123,912,312,45,714,255,815,414,215), nrow = 3)
district_seats = c(7,5,8)
upper_apportionment(votes_matrix, district_seats)