kemenyscore | R Documentation |
Given a ranking, it computes the score matrix as defined by Emond and Mason (2002)
kemenyscore(X)
X |
a ranking (must be a row vector or, better, a matrix with one row and M columns) |
the M by M score matrix
Antonio D'Ambrosio antdambr@unina.it
Kemeny, J and Snell, L. (1962). Mathematical models in the social sciences.
scorematrix
The score matrix as defined by Emond and Mason (2002)
Y <- matrix(c(1,3,5,4,2),1,5)
SM<-kemenyscore(Y)
#
Z<-c(1,2,3,2)
SM2<-kemenyscore(Z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.