smaa.ranks {smaa} | R Documentation |
SMAA ranking
Description
Calculate SMAA ranks based on the sampled alternatives' values.
Usage
smaa.ranks(values)
Arguments
values |
An |
Value
An N \times m
array of ranks obtained by each alternative in each iteration.
Note
The value is given class smaa.ranks
, use unclass(x)
to treat it as a regular matrix.
Author(s)
Gert van Valkenhoef
See Also
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 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))
[Package smaa version 0.3-2 Index]