Description Usage Arguments Value Author(s) See Also Examples
Used to update modal sequences of each cluster in the EM algorithm when fitting Mallows mixture models.
1 2 | RankAggreg(r, z = NULL, infos = NULL, perm = NULL, key = c("borda",
"copeland", "brute"))
|
r |
A vector or a matrix of sequences in rows. |
z |
A vector of weights/frequencies of observations or a matrix of probability of cluster membership for each sequence and each cluster. Set by default a constant vector of 1. |
infos |
The result of calling |
perm |
A matrix of full permutations for brute-force search of optimal Kemeny consensus. Only effective when " |
key |
A character string indicating the ranking aggregation method to find centers.
|
List of length 1 if "z
" is a vector, or ncol(z)
if "z
" is a matrix, each entry being the modal sequence in each cluster.
Yunlong Jiao
1 2 | r <- do.call("rbind", list(1:5, 5:1, c(2,4,1,5,3)))
RankAggreg(r, key = "borda") # Borda count for sequences in "r"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.