ahp.error: Matrix of the product between the pairwise comparison value...

Description Usage Arguments Value Author(s) References Examples

View source: R/ahp_error.R

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

1
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

\insertRef

Saaty2004ahpsurvey

Examples

1
2
3
4
5
6
atts <- c('cult', 'fam', 'house', 'jobs', 'trans')

data(city200)

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

ahpsurvey documentation built on March 26, 2020, 8 p.m.