ahmatrix {Prize}R Documentation

ahmatrix

Description

Converting a triangular matrix into a square pairwise comparison matrix (PCM) where the diagonal values are equal to 1 and a[i,j] = 1/a[j,i].

Usage

ahmatrix(x)

Arguments

x

a numeric triangular matrix, where empty elements are specified with NA.

Value

An S4 object including a PCM.

Author(s)

Daryanaz Dargahi

Examples

mat <- matrix(nrow = 3, ncol = 3, data = NA)
mat[1,2] <- 5
mat[1,3] <- 2
mat[2,3] <- 7

res <- ahmatrix(mat)

[Package Prize version 1.17.0 Index]