cayleyE: Cayley's Distance with Ties

Description Usage Arguments Value Author(s) Examples

Description

Computes Cayley's distance between two rankings, where items with equal ranking are now permitted. The number of items placed in the ith category must be the same. The number of groups must be 2 or 3, as Cayley's distance is undefined in other cases.

Usage

1
cayleyE(x, y)

Arguments

x, y

integer vectors

Value

Returns Cayley's distance between the two rankings.

Author(s)

Lucy Small, lucy.small@ucdconnect.ie

Examples

1
2
3
a = c(3,1,2,2,3)
b = c(1,2,2,3,3)
cayleyE(a,b)

lucyov26/RankMetric documentation built on May 6, 2019, 9:09 a.m.