The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

Type: Package
Title: D-Hondt, Sainte-Lague, and Modified Sainte-Lague Methods for Seat Allocation
Version: 0.1.0
Maintainer: Pau Bello Pérez <paubelloperez@gmail.com>
Description: Calculates seat allocation using the D-Hondt method, Sainte-Lague method, and Modified Sainte-Lague method, all commonly used in proportional representation electoral systems. For more information on these methods, see Michael Gallagher (1991)<doi:10.1016/0261-3794(91)90004-C>.
License: MIT + file LICENSE
Encoding: UTF-8
RoxygenNote: 7.3.2
VignetteBuilder: knitr
NeedsCompilation: no
Packaged: 2025-02-13 11:47:57 UTC; paube
Author: Pau Bello Pérez [aut, cre]
Repository: CRAN
Date/Publication: 2025-02-14 14:30:10 UTC

DHondt method for seats allocation.

Description

DHondt method for seats allocation.

Usage

dhondt(votes, seats, threshold = 0, verbose = TRUE)

Arguments

votes

Un vector con los votos de cada partido.

seats

Total de seats a repartir.

threshold

Umbral electoral

verbose

Muestra los resultados en la consola

Value

Un vector con los seats asignados a cada partido.

Examples

votes <- c(A = 100000, B = 75000, C = 50000, D = 25000)
dhondt(votes, 10)

Sainte-Lague method for seats allocation.

Description

Sainte-Lague method for seats allocation.

Usage

saintelague(votes, seats, threshold = 0, verbose = TRUE)

Arguments

votes

Un vector con los votos de cada partido.

seats

Total de seats a repartir.

threshold

Umbral electoral

verbose

Muestra los resultados en la consola

Value

Un vector con los seats asignados a cada partido.

Examples

votes <- c(A = 100000, B = 75000, C = 50000, D = 25000)
saintelague(votes, 10)

Modified Sainte-Lague method for seats allocation.

Description

Modified Sainte-Lague method for seats allocation.

Usage

saintelaguemod(votes, seats, threshold = 0, div = 1.4, verbose = TRUE)

Arguments

votes

Un vector con los votos de cada partido.

seats

Total de seats a repartir.

threshold

Umbral electoral

div

Divisor modificado en Modified Sainte-Lague

verbose

Muestra los resultados en la consola

Value

Un vector con los seats asignados a cada partido.

Examples

votes <- c(A = 100000, B = 75000, C = 50000, D = 25000)
saintelaguemod(votes, 10)

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.