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

Description Usage Arguments Value Author(s) References Examples

View source: R/ahp_cr.R

Description

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

CR = (λ-n)/((n-1)(RI))

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

Usage

1
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.

Author(s)

Frankie Cho

References

\insertAllCited

Examples

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

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

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