Description Usage Arguments Value
votersVote Alocates votes for a set of competitors/alternatives according to a set of model parameters.
Voters cast their votes for the competitors or alternatives in the choice set based on a set of model parameters.
1 2 3 4 5 6 7 | votersVote(
voterDataFrameVotersVote = NA,
altsDataFrameVotersVote = NA,
abstentionThresholdVotersVote,
numVotesPerVoterVotersVote,
cumulationParameterVotersVote
)
|
voterDataFrameVotersVote |
a voterR voter dataFrame that contains the voterID, ideal point location, minkowski order, loss order, and salience weights for each voter. |
altsDataFrameVotersVote |
a voteR dataFrame that contains the competitorID or alternativeID, and current location of competitors or alternatives being voted on. |
abstentionThresholdVotersVote |
A voter will not cast a vote for any competitor/alternative that is past this euclidian distance. |
numVotesPerVoterVotersVote |
The number of votes a voter may cast in the current electoral system. |
cumulationParameterVotersVote |
The degree to which voters want to cumulate votes. If = 0, cumulation is not allowed, For all values > 0 the loss parameter in the voters loss function is used. |
outVoteTotals A dataFrame containing the vote totals for each alternative or competitor.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.