smaa.ranks | R Documentation |
Calculate SMAA ranks based on the sampled alternatives' values.
smaa.ranks(values)
values |
An |
An N \times 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
smaa.values
smaa.ra
smaa.cw
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.