Description Usage Arguments Value Examples
View source: R/HighestMedianRules.R
Returns a matrix with the scores of candidates sorted in decreasing order of score mj, for the five following voting rules (with k=0.5): mj, d, s, n, mean. See function 'score' for more details.
1 2 3 4 5 6 7 |
grades |
A voting profile, i.e. a matrix with the shares of grades of each candidate on each row, from the lowest grade to the highest. |
scale |
A numeric vector containing the values of the scale of grades. Default to c((floor(-length(grades)/2)+1):(length(grades)+floor(-length(grades)/2))). |
names |
String vector, each string to be printed in case print = TRUE. Defaults to c(). |
return_distance |
If TRUE, returns the Kendall distance between the rules (using AllKendall) instead of the matrix of scores. Default to FALSE. |
rounds |
If TRUE, rounds the scores (to 3 digits for highest median rules and 2 digits for range voting). Default to TRUE. |
A character matrix with as many rows as elements of grades
, and with the name, gauge and scores (according to five different rules) on each row.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.