Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ahp.error

Matrix of the product between the pairwise comparison value and pj/pi


Description

Consider the comparison matrix where element a_{ij} contains the pairwise comparison between the attributes i and j. The weights of the matrix was constructed as in agg.indpref using the Perron eigenvector where p_{i} and p_{j} are the weights of the i^{th} and the j^{th} element respectively. ahp.error constructs a matrix ε_{ij} = a_{ij}p_{j}/p_{i}.

Usage

ahp.error(ahpmat, atts, reciprocal = FALSE)

Arguments

ahpmat

A list of pairwise comparison matrices of each decision maker generated by ahp.mat.

atts

a list of attributes in the correct order

reciprocal

whether to remove all numbers lower than 1 and put all numbers above 1 in the upper triangular matrix. Useful for visualizing the inconsistency rapidly.

Value

A list of matrices containing ε_{ij} = a_{ij}p_{j}/p_{i} for each decision-maker, with elements from the lower triangle set as NA automatically (since it is essentially equal to the element in the upper triangle).

Author(s)

Frankie Cho

References

Saaty TL (2004). “Decision making — the Analytic Hierarchy and Network Processes (AHP/ANP).” Journal of Systems Science and Systems Engineering, 13(1), 1–35. ISSN 1861-9576, doi: 10.1007/s11518-006-0151-5, https://doi.org/10.1007/s11518-006-0151-5.

Examples

atts <- c('cult', 'fam', 'house', 'jobs', 'trans')

data(city200)

cityahp <-  ahp.mat(city200, atts, negconvert = TRUE)
ahp.error(cityahp, atts)

ahpsurvey

Analytic Hierarchy Process for Survey Data

v0.4.1
MIT + file LICENSE
Authors
Frankie Cho [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.