sracpp: Compute the sequential rank agreement between k ranked lists

View source: R/RcppExports.R

sracppR Documentation

Compute the sequential rank agreement between k ranked lists

Description

Computes the sequential rank agreement (number of items present in all k lists divided by the current rank) for each rank in the k lists

Usage

sracpp(rankMat, maxlength, B, cens, type = 0L, epsilon = as.numeric(c(0)))

Arguments

rankMat

A matrix with k columns corresponding to the k ranked lists. Elements of each column are integers between 1 and the length of the lists

maxlength

The maximum depth that are needed XXX

B

The number of resamples to use in the presence of censored lists

cens

A vector of integer values that

type

The type of distance measure to use: 0 (the default) is the variance while 1 is MAD (median absolute deviation)

epsilon

A non-negative numeric vector that contains the minimum limit in proportion of lists that must show the item. Defaults to 0. If a single number is provided then the value will be recycles to the number of items.

Value

A vector of the same length as the rows in rankMat containing the squared (!) sequential rank agreement between the lists for each depth. If the MAD type was chosen then the sequential MAD values are returned

Author(s)

Claus Ekstrøm <ekstrom@sund.ku.dk>


SuperRanker documentation built on Aug. 28, 2023, 1:08 a.m.