powered by
The Kendall distance between two ranks is the number of pairs that are in different order in the two ranks.
distKendall(x, y, type = "ordering")
two ranks of size m.
type of the rank representation ("ordering" ou "ranking").
an integer, the Kendall distance between x and y.
A New Measure of Rank Correlation, M. G. Kendall
# NOT RUN { x <- 1:5 y <- c(2, 3, 1, 4, 5) distKendall(x, y, type = "ordering") # }
Run the code above in your browser using DataLab