spearG: Spearman's Rho for any Number of Ties

Description Usage Arguments Value Author(s) Examples

Description

Computes Spearman's rho between two rankings x and y, where any number of items with equal rankings are now permitted in each ranking. The number of items ranked r for the two rankings can vary.

Usage

1
spearG(x, y)

Arguments

x, y

integer vectors

Value

Returns Spearman's rho between two rankings x and y

Author(s)

Lucy Small, lucy.small@ucdconnect.ie

Examples

1
2
3
a = c(3,1,2,2,3)
b = c(1,2,3,4,4)
spearG(a,b)

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