createLogicalPCM {AHPtools} | R Documentation |

## 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], doi:10.1002/mcda.1784

### Usage

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

### 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. |

### Value

A Logical Pairwise Comparison Matrix

### Examples

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

[Package

*AHPtools*version 0.3.0 Index]