Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


ConsRank (version 2.0.1)

kemenyscore: Score matrix according Kemeny (1962)

Description

Given a ranking, it computes the score matrix as defined by Emond and Mason (2002)

Usage

kemenyscore(X)

Arguments

X

a ranking (must be a row vector or, better, a matrix with one row and M columns)

Value

the M by M score matrix

References

Kemeny, J and Snell, L. (1962). Mathematical models in the social sciences.

See Also

scorematrix The score matrix as defined by Emond and Mason (2002)

Examples

Run this code
# NOT RUN {
Y = matrix(c(1,3,5,4,2),1,5)
SM=kemenyscore(Y)
#
Z=c(1,2,3,2)
SM2=kemenyscore(Z)

# }

Run the code above in your browser using DataLab