voteByUtilNoCumu: voteByUtilNoCumu Allocate votes based utility values, no...

Description Usage Arguments Value

View source: R/voteByUtilNoCumu.R

Description

voteByUtilNoCumu Allocate votes based utility values, no cumulation is allowed.

Voters allocate their votes based on their preference prdering as determined by their utility function. They are not allowd to vote for a competitor or alternative more than once. This function is usually not called directly but is wrapped by votersVote.

Usage

1
2
3
4
voteByUtilNoCumu(
  votersUtilsForAltsVoteByUtilNoCumu,
  numVotesPerVoterVoteByUtilNoCumu
)

Arguments

votersUtilsForAltsVoteByUtilNoCumu

numVoters by numAlts matrix of utility values.

numVotesPerVoterVoteByUtilNoCumu

the number of votes each voter is allowed to cast. This function does not allow cumulation of votes.

Value

outVotesVoteByUtilNoCumu A 1 x numberOfAlts matrix displaying the number of votes cast for each alternative.


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