Learn R Programming

Rankcluster (version 0.98.0)

distKendall: Kendall distance between two ranks

Description

The Kendall distance between two ranks is the number of pairs that are in different order in the two ranks.

Usage

distKendall(x, y, type = "ordering")

Value

an integer, the Kendall distance between x and y.

Arguments

x, y

two ranks of size m.

type

type of the rank representation ("ordering" ou "ranking").

Author

Julien Jacques

References

A New Measure of Rank Correlation, M. G. Kendall

See Also

Other distance: distCayley(), distHamming(), distSpearman()

Examples

Run this code
x <- 1:5
y <- c(2, 3, 1, 4, 5)
distKendall(x, y, type = "ordering")

Run the code above in your browser using DataLab