Learn R Programming

shuffleCI (version 0.1.0)

ktau: Kendall's tau

Description

Calculates Kendall's tau distance

Usage

ktau(list)

Arguments

list

A list of numbers

Value

The Kendall's tau distance.

Details

Returns the Kendall's tau distance between the input list and the sorted list 1,2,..n.

References

Kendall, M. G. (1938). A new measure of rank correlation. Biometrika, 30(1/2), 81-93.

Examples

Run this code
# NOT RUN {
ktau(c(1,4,2,5,6,3,7))
# }

Run the code above in your browser using DataLab