Skip to content

Single-function R package for implementing the Huntington-Hill method of legislative seat allocation

License

Notifications You must be signed in to change notification settings

aadams149/hhill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hhill

hhill() implements the Huntington-Hill method of legislative seat allocation which is currently used by the United States House of Representatives. The Huntington-Hill method is calculated as follows: each entity represented in the chamber is assigned a score, calculated as the population of that entity divided by the square root of n(n+1), where n is the current number of seats allocated to that entity. All entities are assigned the minimum number of seats, and then scores are calculated. The entity with the highest score receives a seat, its n value increments by 1, and then scores are recalculated. The new entity with the highest score receives a seat, increments its n, and the process repeats until all available seats have been allocated.

Installation

devtools::install_github("aadams149/hhill")

About

Single-function R package for implementing the Huntington-Hill method of legislative seat allocation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages