pairwiseComparisonMatrix-methods function

Function that creates Pairwise Comparions Matrix

Function that creates Pairwise Comparions Matrix

This methods construct object PairwiseComparisonMatrix based on provided matrix. The matrix needs to be square and reciprocal with the intensity of importance (comparisons). Since the version 0.6.9 the comparsions can be represented as either characters (e.g. "1", "9", "1/9") or numeric (e.g. 1, 9, 1/9) .

pairwiseComparisonMatrix(matrix) ## S4 method for signature 'matrix' pairwiseComparisonMatrix(matrix)

Arguments

  • matrix: A reciprocal square matrix with ones on the main diagonal.

Returns

An object of class PairwiseComparisonMatrix

Examples

comparisonMatrixValues = c("1","9","5","1/9","1","1/3","1/5","3","1") comparisonMatrix = matrix(comparisonMatrixValues, nrow = 3, ncol = 3, byrow = TRUE) matrix = pairwiseComparisonMatrix(comparisonMatrix) comparisonMatrixValues = c(1,9,5,1/9,1,1/3,1/5,3,1) comparisonMatrix = matrix(comparisonMatrixValues, nrow = 3, ncol = 3, byrow = TRUE) matrix = pairwiseComparisonMatrix(comparisonMatrix)

See Also

PairwiseComparisonMatrix