powered by
Calculates Kendall's tau distance
ktau(list)
A list of numbers
The Kendall's tau distance.
Returns the Kendall's tau distance between the input list and the sorted list 1,2,..n.
Kendall, M. G. (1938). A new measure of rank correlation. Biometrika, 30(1/2), 81-93.
# NOT RUN { ktau(c(1,4,2,5,6,3,7)) # }
Run the code above in your browser using DataLab