smaa.pwi: SMAA pair-wise winning indices

View source: R/smaa.R

smaa.pwiR Documentation

SMAA pair-wise winning indices

Description

Calculate SMAA pair-wise winning indices from sampled rankings.

Usage

smaa.pwi(ranks)

Arguments

ranks

An N \times m array of sampled rankings, where N is the number of SMAA iterations and m is the number of alternatives.

Value

An m \times m matrix of pair-wise winning indices. The index at (i, j) describes the share of samples for which alternative i has a better (lower) rank than alternative j.

Author(s)

Tommi Tervonen

See Also

smaa.ranks

Examples

N <- 1E4; m <- 2; n <- 3
meas <- dget(system.file("extdata/thrombo-meas.txt.gz", package="smaa"))
pref <- dget(system.file("extdata/thrombo-weights-nopref.txt.gz", package="smaa"))

# Calculate pair-wise winning indices
values <- smaa.values(meas, pref)
ranks <- smaa.ranks(values)
pwi <- smaa.pwi(ranks)
print(pwi)

smaa documentation built on April 28, 2023, 5:07 p.m.