Package: proporz 1.6.0

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.6.0.tar.gz
proporz_1.6.0.zip(r-4.7-any)proporz_1.6.0.zip(r-4.6-any)proporz_1.6.0.zip(r-4.5-any)
proporz_1.6.0.tgz(r-4.6-any)proporz_1.6.0.tgz(r-4.5-any)
proporz_1.6.0.tar.gz(r-4.7-any)proporz_1.6.0.tar.gz(r-4.6-any)
proporz_1.6.0.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.94 score 8 stars 10 scripts 262 downloads 27 exports 0 dependencies

Last updated from:a2f236a933. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK119
source / vignettesOK192
linux-releaseOK152
macos-releaseOK107
macos-oldrelOK86
windows-develOK62
windows-releaseOK72
windows-oldrelOK78
wasm-releaseOK83

Exports:apply_quorumbiproporzceil_atdistrict_winner_matrixdivisor_ceilingdivisor_floordivisor_geometricdivisor_harmonicdivisor_roundeval_quorumget_divisorshighest_averages_methodlargest_remainder_methodlower_apportionmentpivot_to_dfpivot_to_matrixproporzpukelsheimquorum_allquorum_anyreached_quorum_any_districtreached_quorum_totalrun_appupper_apportionmentweight_list_votesweight_votes_matrixzero_failed_quorum

Dependencies:

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-10-28
Started: 2025-03-06

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