Learn R Programming

smaa (version 0.3-3)

smaa.pwi: SMAA pair-wise winning indices

Description

Calculate SMAA pair-wise winning indices from sampled rankings.

Usage

smaa.pwi(ranks)

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.

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.

Author

Tommi Tervonen

See Also

smaa.ranks

Examples

Run this code
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)

Run the code above in your browser using DataLab