apply.VIKOR | R Documentation |
Function for applying VIKOR to data
apply.VIKOR(A, weights, nu = 0.5)
A |
the comparison matrix |
weights |
the weights of criteria |
nu |
weight of the maximum utility strategy - set by default to 0.5 |
a list containing the names of Qi followed by values of Qi, Si, Ri, condition 1, and condition 2.
A <- matrix(c(250, 200, 300, 275,
225, 16, 16, 32,
32, 16, 12, 8,
16, 8, 16, 5,
3, 4, 4, 2), nrow=5, ncol=4)
colnames(A)<-c("Price", "Memory", "Camera", "Looks")
rownames(A)<-paste0("Mobile ", seq(1, 5, 1))
A[,"Price"] <- -A[,"Price"]
apply.VIKOR(A, c(0.35, 0.3, 0.2, 0.15))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.