Learn R Programming

StatRank (version 0.0.6)

scores.to.order: Converts scores to a ranking

Description

takes in vector of scores (with the largest score being the one most preferred) and returns back a vector of WINNER, SECOND PLACE, ... LAST PLACE

Usage

scores.to.order(scores)

Arguments

scores
the scores (e.g. means) of a set of alternatives

Value

an ordering of the index of the winner, second place, etc.

Examples

Run this code
scores <- Generate.RUM.Parameters(10, "exponential")$Mean
scores.to.order(scores)

Run the code above in your browser using DataLab