ahp.error {ahpsurvey} | R Documentation |

## 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 `\epsilon_{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 |

`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 `\epsilon_{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*version 0.4.1 Index]