smaa: One-stage SMAA analysis

View source: R/smaa.R

smaaR Documentation

One-stage SMAA analysis

Description

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.

Usage

    smaa(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.

Details

The one-stage method does not store the alternatives' values or the raw rankings. Instead, only standard summary metrics are provided.

Value

ra

Rank acceptabilities (see smaa.ra).

cw

Central weights (see smaa.cw).

Author(s)

Gert van Valkenhoef

See Also

smaa.pvf

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 SMAA metrics
result <- smaa(meas, pref)
print(result)
plot(result)

result <- smaa(meas, c(0.5, 0.2, 0.3))
print(result)

smaa documentation built on April 28, 2023, 5:07 p.m.