useSequentialRunoffRule: useSequentialRunoffRule Applies plurality rule to a set of...

Description Usage Arguments Value

View source: R/useSequentialRunoffRule.R

Description

Takes in a set of voter preferences, applies plurality rule to them and returns the choice set.

Usage

1
2
3
4
useSequentialRunoffRule(
  voterPreferencesSequentialRunoff,
  breakVoterTiesSequentialRunoff = "random"
)

Arguments

voterPreferencesSequentialRunoff

A matrix of voter preferences that is numVoters x numAlts.

breakVoterTiesSequentialRunoff

Determines how a voter with two equal top choices cast their vote. Can be "random", "first" or "last".

Value

A list where the first element is the group's choice set and the subsequent elelmets are the vote toatls form each round. #STILL TO DO


robiRagan/voteR documentation built on Feb. 27, 2020, 6:48 p.m.