apply.GRA {RMCDA} | R Documentation |
Apply Grey Relational Analysis (GRA) method
Description
Apply Grey Relational Analysis (GRA) method
Usage
apply.GRA(mat, weights, beneficial.vector, epsilon = 0.5)
Arguments
mat |
is a matrix containing the values for different properties of different alternatives |
weights |
are the weights of each property in the decision-making process |
beneficial.vector |
is a vector containing the column numbers of beneficial properties. Non-beneficial properties are assumed to be the remaining columns. |
epsilon |
is a parameter for the GRA method, default is 0.5 |
Value
a vector containing the calculated GRA scores
Examples
mat <- matrix(c(80, 60, 90,
75, 85, 95,
70, 65, 85,
60, 75, 80),
nrow = 4, byrow = TRUE)
colnames(mat) <- c("Criterion 1", "Criterion 2", "Criterion 3")
weights <- c(0.4, 0.3, 0.3)
beneficial.vector <- c(1, 2, 3)
apply.GRA(mat, weights, beneficial.vector)
[Package RMCDA version 0.3 Index]