weights.matrix: A function to obtain the criteria weight

Description Usage Arguments Details References Examples

View source: R/group_sensitivity.R

Description

Given a pairwise comparison matrix this function allows you to obtain the criteria weight (row geometric mean) for one user and any number of criteria

Usage

1
2
## S3 method for class 'matrix'
weights(x, n)

Arguments

x

a pairwise comparison matrix

n

Integer, the total number of criteria

Details

The weight criteria is obtained by the computation of the geometric mean

\bar{w}_r^{P_j} = √[m]{a_{r1}a_{r2}… a_{rm}}

where a_{rm} are elements in the pairwise comparisons matrix

C = ≤ft[ {\begin{array}{cccc} 1 & a_{12} & … & a_{1m}\\ 1/a_{12} & 1 & … & a_{2m} \\ … & … & 1 & …\\ 1/a_{1m} & 1/a_{2m} & … & 1 \end{array} } \right]

References

Marie Ivanco, Gene Hou, Jennifer Michaeli, Sensitivity analysis method to address user disparities in the analytic hierarchy process, Expert Systems with Applications, Volume 90, 2017, Pages 111-126, ISSN 0957-4174, https://doi.org/10.1016/j.eswa.2017.08.003.

Examples

1
2
pcm <- pcmatrix(c(1,2,3,4,5,6), 4)
weights.matrix(pcm, 4)

iaga/ahpsensitivity documentation built on Dec. 20, 2021, 5:57 p.m.