Learn R Programming

Prize (version 1.2.0)

ahp: ahp

Description

Computing AHP weights as well as Satty's inconsistency.

Usage

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.

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

Run this code
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)

Run the code above in your browser using DataLab