smaa.values {smaa} | R Documentation |
SMAA alternative values
Description
Calculate the alternative values based on a set of samples from the criteria values distribution and a set of samples from the feasible weight space.
Usage
smaa.values(meas, pref)
Arguments
meas |
Criteria measurements. An |
pref |
Weights. An |
Value
An N \times m
array of alternative values.
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"))
# Sample / read weights
library(hitandrun)
pref <- simplex.sample(n, N)$samples
pref <- dget(system.file("extdata/thrombo-weights-nopref.txt.gz", package="smaa"))
# Calculate alternative values
values <- smaa.values(meas, pref)
summary(values)
plot(values)
values.expected <- dget(system.file("extdata/thrombo-values-nopref.txt.gz", package="smaa"))
stopifnot(all.equal(values, values.expected))
[Package smaa version 0.3-2 Index]