ahp: ahp

Description Usage Arguments Value Author(s) References Examples

View source: R/ahp.R

Description

Computing AHP weights as well as Satty's inconsistency.

Usage

1
ahp(x, simulation = 500)

Arguments

x

a pairwise comparison matrix (PCM) with diagonal values equal 1 and a[i,j] = 1/a[j,i].

simulation

the simulation size in order to compute Satty's inconsistency. The default value is 500.

Value

An S4 object including a numeric vector of AHP weights and Satty's inconsistency.

Author(s)

Daryanaz Dargahi

References

T.L. Saaty. A scaling method for priorities in hierarchical structures. Journal of Mathematical Psychology, 15(3):234-281, 1977.

T.L. Saaty. The Analytic Hierarchy Process, Planning, Piority Setting, Re- source Allocation. McGraw-Hill, New york, 1980.

Examples

1
2
mat <- matrix(c(1,2,5, 1/2,1,3, 1/5,1/3,1), nrow = 3, ncol = 3, byrow = TRUE)
res <- ahp(mat, simulation = 500)

Example output



Prize documentation built on April 28, 2020, 7:48 p.m.