smaa.pwi {smaa} | R Documentation |
Calculate SMAA pair-wise winning indices from sampled rankings.
smaa.pwi(ranks)
ranks |
An N * m array of sampled rankings, where N is the number of SMAA iterations and m is the number of alternatives. |
An m * 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.
Tommi Tervonen
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)