smaa.ranks {smaa} | R Documentation |
Calculate SMAA ranks based on the sampled alternatives' values.
smaa.ranks(values)
values |
An N * m array of sampled alternative values, where N is the number of SMAA iterations and m is the number of alternatives. |
An N * m array of ranks obtained by each alternative in each iteration.
The value is given class smaa.ranks
, use unclass(x)
to treat it as a regular matrix.
Gert van Valkenhoef
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 alternative ranks values <- smaa.values(meas, pref) ranks <- smaa.ranks(values) summary(ranks) ranks.expected <- dget(system.file("extdata/thrombo-ranks-nopref.txt.gz", package="smaa")) stopifnot(all.equal(ranks, ranks.expected))