Learn R Programming

linearOrdering (version 1.0.1)

hellwig: Hellwig's method.

Description

Hellwig's method.

Usage

hellwig(decision, weights, impacts)

Arguments

decision

A numeric matrix with m rows for m alternatives and n columns for n criterions.

weights

A numeric vector with length equal to number of columns in decision matrix for weights of criterions.

impacts

A character vector of '+' and '-' signs for the way that each criterion influences on the alternatives.

Value

A data frame including elements:

alt.row

Row number of alternatives in decision matrix.

score

Score of alternatives.

rank

Rank of alternatives based on score.

Should decision be a data frame, the row names will be carried over to the return value.

References

Hellwig, Z. (1968). On the optimal choice of predictors. UNESCO.

Examples

Run this code
# NOT RUN {
d <- matrix(rpois(12, 5), nrow = 3, ncol = 3)
w <- c(1, 1, 2)
i <- c('+', '-', '+')
hellwig(d, w, i)
# }

Run the code above in your browser using DataLab