The ahp.ri
function calculates the mean consistency indices of a specific numbers of random number pairwise comparison matrices.
The random index of one pairwise comparison matrix is given as below, where \(lambda\) is the maximum eigenvalue and \(n\) is the number of attributes.
$$RI = (\lambda-n)/((n-1)$$
ahp.ri
creates nsims
number of pairwise comparison matrices with number of dimensions=dim
, and returns its average.