ahpsurvey (version 0.4.0)

ahp.cr: Calculates the consistency ratio of each decision-maker

Description

The ahp.cr function calculates the consistency ratio of each decision-maker, defined by the following equation:

$$CR = (\lambda-n)/((n-1)(RI))$$

Where \(\lambda\) is the maximum eigenvalue of the pairwise comparison matrix, \(n\) is the number of attributes, and RI is the random index. Following Saaty2007fuzzy;textualahpsurvey, the RI is a function of \(n\) and is the consistency ratio of randomly generated pairwise comparison matrices.

Usage

ahp.cr(ahpmat, atts, ri = NULL)

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. The RI is asymptotic as it approaches n=15, thus it is set to be equal to 1.6 if the number of attributes exceeds 16.

ri

A user-supplied random index value, probably user generated using ahp.ri.

Value

A list of consistency ratios of each decision-maker.

References

Examples

Run this code
# NOT RUN {
data(city200)
atts <- c('cult', 'fam', 'house', 'jobs', 'trans')

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

# }

Run the code above in your browser using DataLab