apply.PROMETHEE | R Documentation |
Function for applying PROMOTHEE I or II
apply.PROMETHEE(A, weights, type = "II")
A |
the comparison matrix with the row names indicating the alternatives and colnames indicating the criteria. |
weights |
the weights of criteria. |
type |
can be either type 'I' or 'II'. It is set to 'II' by default |
the results of PROMOTHEE
A <- matrix(c(250, 200, 300, 275, 16, 16, 32, 32, 12, 8, 16, 8, 5, 3, 4, 2), nrow=4)
rownames(A)<-c("Mobile 1", "Mobile 2", "Mobile 3", "Mobile 4")
colnames(A)<-c("Price", "Memory", "Camera", "Looks")
weights <- c(0.35, 0.25, 0.25, 0.15)
apply.PROMETHEE(A, weights)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.