Learn R Programming

AHPtools (version 1.0.1)

createLogicalPCM: Simulated Logical Pairwise Comparison Matrix for the Analytic Hierarchy Process

Description

Creates a logical pairwise comparison matrix for the Analytic Hierarchy Process such as would be created by a rational decision maker based on a relative vector of preferences for the alternatives involved. Choices of the pairwise comparison ratios are from the Fundamental Scale and simulate a reasonable degree of error. The algorithm is modified from a paper by Bose, A [2022], tools:::Rd_expr_doi("https://doi.org/10.1002/mcda.1784")

Usage

createLogicalPCM(ord, prefVec = rep(NA, ord), granularityLow = TRUE)

Value

A Logical Pairwise Comparison Matrix

Arguments

ord

The desired order of the Pairwise Comparison Matrix

prefVec

The preference vector of length as the order of the input matrix

granularityLow

The Scale for pairwise comparisons; default (TRUE) is the fundamental scale; else uses a more find grained scale, derived from pairwise ratios of the elements of the Fundamental Scale.

Examples

Run this code
lPCM <- createLogicalPCM(3,c(1,2,3));
lPCM <- createLogicalPCM(5,c(0.25,0.4,0.1,0.05,0.2));

Run the code above in your browser using DataLab