spearfootP: Spearman's Footrule for Partial rankings

Description Usage Arguments Value Author(s) Examples

Description

Computes Spearman's footrule between two partial rankings.

Usage

1
spearfootP(a, b, k)

Arguments

a, b

integer vectors

k

integer

Value

Returns Spearman's footrule between two partial rankings, where only the first k items have been ranked. No ties are permitted.

Author(s)

Lucy Small, lucy.small@ucdconnect.ie

Examples

1
2
3
4
a = c(3,1,2,5,4)
b = c(1,2,3,4,5)
k=3
spearfootP(a,b,k)

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