Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

License

NotificationsYou 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() 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.

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


[8]ページ先頭

©2009-2025 Movatter.jp