Package: proporz 1.5.3

proporz: Proportional Apportionment

Calculate seat apportionment for legislative bodies with various methods. The algorithms include divisor or highest averages methods (e.g. Jefferson, Webster or Adams), largest remainder methods and biproportional apportionment. Gaffke, N. & Pukelsheim, F. (2008) <doi:10.1016/j.mathsocsci.2008.01.004> Oelbermann, K. F. (2016) <doi:10.1016/j.mathsocsci.2016.02.003>.

Authors:Flavio Poletti [aut, cre, cph]

proporz_1.5.3.tar.gz
proporz_1.5.3.zip(r-4.7-any)proporz_1.5.3.zip(r-4.6-any)proporz_1.5.3.zip(r-4.5-any)
proporz_1.5.3.tgz(r-4.6-any)proporz_1.5.3.tgz(r-4.5-any)
proporz_1.5.3.tar.gz(r-4.7-any)proporz_1.5.3.tar.gz(r-4.6-any)
proporz_1.5.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
proporz/json (API)

# Install 'proporz' in R:
install.packages('proporz', repos = c('https://polettif.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/polettif/proporz/issues

Pkgdown/docs site:https://polettif.github.io

Datasets:
  • finland2019 - Finnish Parliamentary Elections Data
  • uri2020 - Election Data for the Cantonal Council of Uri
  • zug2018 - Election Data for the Cantonal Council of Zug

On CRAN:

Conda:

apportionmentapportionment-methodsbiproportionalelection-analysis

5.86 score 8 stars 10 scripts 259 downloads 25 exports 0 dependencies

Last updated from:2d271a1c9b. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK115
source / vignettesOK177
linux-releaseOK124
macos-releaseOK171
macos-oldrelOK135
windows-develOK56
windows-releaseOK57
windows-oldrelOK75
wasm-releaseOK85

Exports:apply_quorumbiproporzceil_atdistrict_winner_matrixdivisor_ceilingdivisor_floordivisor_geometricdivisor_harmonicdivisor_roundget_divisorshighest_averages_methodlargest_remainder_methodlower_apportionmentpivot_to_dfpivot_to_matrixproporzpukelsheimquorum_allquorum_anyreached_quorum_any_districtreached_quorum_totalrun_appupper_apportionmentweight_list_votesweight_votes_matrix

Dependencies:

Apportionment scenarios
1) Introduction | 2) Setup data | 3) Distribute seats in every district independently | 3.1) Function to distribute seats in districts | 3.2) Actual distribution method (D'Hondt) | 3.3) Alternative methods | 3.4) Compare seat share with vote share | 4) Biproportional method | 4.1) Biproportional party seats | 4.2) Distribute seats among districts as well | 5) Effect of a system change on seat distribution

Last update: 2026-08-26
Started: 2024-02-23

Modifying biproporz()
1) Introduction | Analyzing the Votes Matrix | 2) Standard Biproportional Apportionment | 3) Modifying biproporz with Parameters | Applying a Quorum | Alternative Apportionment Methods | Custom Rounding Function | 4) District Winner Methods | Winner-Take-One (WTO) | WTO with an Alternative Upper Apportionment Method | WTO with Ties | Guaranteeing District Winners a Seat

Last update: 2026-08-26
Started: 2025-03-06