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 N \times m \times n array, where meas[i,,] is a matrix where the m alternatives are the rows and the n criteria the columns. The values must be standardized measurements (i.e. after application of the partial value function). smaa.pvf provides a convenience method to standardize partial values.

pref

Weights. An N \times n array, where pref[i,] is a normalized weight vector.

Value

An N \times m array of alternative values.

Author(s)

Gert van Valkenhoef

See Also

smaa.pvf smaa.ranks

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]