smaa.cw | R Documentation |
Calculate SMAA central weights from sampled rankings and the corresponding weights.
smaa.cw(ranks, pref)
ranks |
An |
pref |
An |
An m \times n
matrix of central weights, where each row corresponds to an
alternative and each column to a criterion.
The number of SMAA iterations is stored in attr(x, "smaa.N")
.
The value is given class smaa.cw
, use unclass(x)
to treat it as a regular matrix.
Gert van Valkenhoef
smaa.ranks
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 central weights
values <- smaa.values(meas, pref)
ranks <- smaa.ranks(values)
cw <- smaa.cw(ranks, pref)
print(cw)
plot(cw)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.