smaa | R Documentation |
Calculate SMAA decision indices based on a set of samples from the criteria values distribution and a set of samples from the feasible weight space.
smaa(meas, pref)
meas |
Criteria measurements. An |
pref |
Weights. An |
The one-stage method does not store the alternatives' values or the raw rankings. Instead, only standard summary metrics are provided.
ra |
Rank acceptabilities (see |
cw |
Central weights (see |
Gert van Valkenhoef
smaa.pvf
N <- 1E4; m <- 2; n <- 3
meas <- dget(system.file("extdata/thrombo-meas.txt.gz", package="smaa"))
# Read weights from file
pref <- dget(system.file("extdata/thrombo-weights-nopref.txt.gz", package="smaa"))
# Alternatively, sample weights using hitandrun:
# library(hitandrun)
# pref <- simplex.sample(n, N)$samples
# Calculate SMAA metrics
result <- smaa(meas, pref)
print(result)
plot(result)
result <- smaa(meas, c(0.5, 0.2, 0.3))
print(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.