distKendall: Kendall distance between two ranks

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/RankDistance.R

Description

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

Usage

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

Arguments

x, y

two ranks of size m.

type

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

Value

an integer, the Kendall distance between x and y.

Author(s)

Julien Jacques

References

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

See Also

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

Examples

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

Rankcluster documentation built on Jan. 27, 2021, 9:07 a.m.