social_choice.ranked_ballots {elections.dtree}R Documentation

Evaluate a social choice function on a set of ranked_ballots.

Description

social_choice.ranked_ballots reads a set of ranked ballots and computes an election outcome. The outcome depends on the chosen social choice function, along with any its associated parameters.

Usage

## S3 method for class 'ranked_ballots'
social_choice(x, n_winners = 1, fn = "irv", ...)

Arguments

x

The set of ballots for which to compute the outcome of the IRV social choice function.

n_winners

The number of candidates to elect.

fn

The social choice function to use.

"irv"

The IRV social choice function.

\dots

Unused.


[Package elections.dtree version 1.1.2 Index]