smaa.ra: SMAA rank acceptabilities

View source: R/smaa.R

smaa.raR Documentation

SMAA rank acceptabilities

Description

Calculate SMAA rank acceptabilities from sampled rankings.

Usage

smaa.ra(ranks)

Arguments

ranks

An N \times m array of sampled rankings, where N is the number of SMAA iterations and m is the number of alternatives.

Value

An m \times m matrix of rank probabilities, where each row corresponds to an alternative. The number of SMAA iterations is stored in attr(x, "smaa.N").

Note

The value is given class smaa.ra, use unclass(x) to treat it as a regular matrix.

Author(s)

Gert van Valkenhoef

See Also

smaa.ranks

Examples

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 rank acceptabilities
values <- smaa.values(meas, pref)
ranks <- smaa.ranks(values)
ra <- smaa.ra(ranks)
print(ra)
plot(ra)

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