Package: proporz 1.5.2.9000

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.2.9000.tar.gz
proporz_1.5.2.9000.zip(r-4.7-any)proporz_1.5.2.9000.zip(r-4.6-any)proporz_1.5.2.9000.zip(r-4.5-any)
proporz_1.5.2.9000.tgz(r-4.6-any)proporz_1.5.2.9000.tgz(r-4.5-any)
proporz_1.5.2.9000.tar.gz(r-4.7-any)proporz_1.5.2.9000.tar.gz(r-4.6-any)
proporz_1.5.2.9000.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 182 downloads 25 exports 0 dependencies

Last updated from:5ec62394be. Checks:2 NOTE, 7 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64NOTE140
source / vignettesOK157
linux-release-x86_64OK128
macos-release-arm64OK118
macos-oldrel-arm64OK92
windows-develNOTE93
windows-releaseOK132
windows-oldrelOK86
wasm-releaseOK97

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