pcmatrix: A function to create a pairwise comparison matrix

Description Usage Arguments Details Examples

View source: R/interval_judgement.R

Description

A function to create a pairwise comparison matrix

Usage

1
pcmatrix(x, n)

Arguments

x

Vector, it contains the upper triangular elements of the matrix

n

Integer, total number of criteria

Details

Given a vector with the upper triangular elements of a pairwise comparison matrix, this function returns a matrix in the pairwise comparison form

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]

Examples

1
pcmatrix(c(1,2,3,4,5,6), 4)

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