easyAHP: Analytic Hierarchy Process (AHP)

Description Usage Arguments Value Note Author(s) Examples

View source: R/easyAHP.R

Description

Given the scores from decision makers, the analytic hierarchy process can be conducted easily.

Usage

1

Arguments

data

a data frame consisted of the scores from decision makers; each row represents each item; no more than 10 items is allowed; each column represents each decision maker; no more than 20 makers is allowed; each item would be graded 1-9 score by each meker

Value

Matrix

decision matrix of each decidion maker and the consolidated

Weights

item weights of each decidion maker and the consolidated

CI

consistency index of each decidion maker and the consolidated; being used to calculate the next item (CR)

CR

consistency ratio of each decidion maker and the consolidated; value<0.1 is acceptable, otherwise we should ask the makers to grade once more time

Note

Please feel free to contact us, if you have any advice and find any bug!

Reference:

1. http://bpmsg.com/

Update:

Version 0.1.1: the explaination in the 'value' section is corrected; the value of 'CR' less than 0.1 is acceptable

More advanced performance is coming!

Author(s)

Zhicheng Du<dgdzc@hotmail.com>, Yuantao Hao<haoyt@mail.sysu.edu.cn>

Examples

1
2
3
data=data.frame(maker1=c(6,8,1,3),maker2=c(6,8,2,3))
row.names(data)=c("item1","item2","item3","item4")
easyAHP(data)

Example output

$Maker1
$Maker1$Matrix
          item1     item2 item3 item4
item1 1.0000000 0.5000000     5   3.0
item2 2.0000000 1.0000000     7   5.0
item3 0.2000000 0.1428571     1   0.5
item4 0.3333333 0.2000000     2   1.0

$Maker1$Weights
     item1      item2      item3      item4 
0.30102991 0.52616122 0.06288829 0.10992058 

$Maker1$CI
[1] 0.006949629

$Maker1$CR
[1] 0.007641713


$Maker2
$Maker2$Matrix
          item1     item2 item3 item4
item1 1.0000000 0.5000000     4     3
item2 2.0000000 1.0000000     6     5
item3 0.2500000 0.1666667     1     1
item4 0.3333333 0.2000000     1     1

$Maker2$Weights
     item1      item2      item3      item4 
0.29484414 0.52431526 0.08511417 0.09572643 

$Maker2$CI
[1] 0.004627005

$Maker2$CR
[1] 0.005087789


$Makers
$Makers$Matrix
          item1     item2    item3     item4
item1 1.0000000 0.5000000 4.472136 3.0000000
item2 2.0000000 1.0000000 6.480741 5.0000000
item3 0.2236068 0.1543033 1.000000 0.7071068
item4 0.3333333 0.2000000 1.414214 1.0000000

$Makers$Weights
     item1      item2      item3      item4 
0.29824942 0.52581650 0.07324271 0.10269138 

$Makers$CI
[1] 0.003076318

$Makers$CR
[1] 0.003382676

easyAHP documentation built on May 2, 2019, 7:58 a.m.

Related to easyAHP in easyAHP...