- Notifications
You must be signed in to change notification settings - Fork0
Single-function R package for implementing the Huntington-Hill method of legislative seat allocation
License
aadams149/hhill
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
hhill()
implements the Huntington-Hill method of legislativeseat allocation which is currently used by theUnited States House of Representatives.The Huntington-Hill method is calculated as follows:each entity represented in the chamberis assigned a score, calculated as the population of thatentity divided by the square rootofn(n+1), wheren is the current number of seatsallocated to that entity. All entities are assignedthe minimum number of seats, and then scores are calculated.The entity with the highest score receives a seat,itsn value increments by 1, and then scores are recalculated.The new entity with the highest score receives a seat,increments itsn, and the process repeats until all availableseats have been allocated.
devtools::install_github("aadams149/hhill")