View source: R/voting_methods.R
| seq_phragmen | R Documentation |
Sequential Phragmen's Rule is a multi-winner method that builds a committee by distributing representation loads across voters as evenly as possible. At each step, it selects the candidate that yields the smallest increase in voter load, then updates loads for voters who approved the chosen candidate. The process continues until the committee is filled or all candidates are ranked.
This function uses an internal C++ implementation for efficient computation.
seq_phragmen(
voters,
candidates,
weights = NULL,
committee_size = NULL,
borda_score = TRUE,
check = FALSE
)
voters |
( |
candidates |
( |
weights |
( |
committee_size |
( |
borda_score |
( |
check |
( |
A data.frame with columns:
"candidate": Candidate names.
"borda_score": Borda scores for method-agnostic comparison, ranging in [0,1], where the top candidate receives a score of 1 and the lowest-ranked candidate receives a score of 0, based on the total number of candidates.
Candidates are ordered by the sequence in which they were selected.
Other voting methods:
av(),
sav(),
seq_pav()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.