apply.PIV: Apply Proximity Indexed Value (PIV) method

View source: R/PIV.R

apply.PIVR Documentation

Apply Proximity Indexed Value (PIV) method

Description

Apply Proximity Indexed Value (PIV) method

Usage

apply.PIV(mat, weights, beneficial.vector)

Arguments

mat

A numeric matrix containing the values for different properties of different alternatives.

weights

A numeric vector containing the weights of each property.

beneficial.vector

A numeric vector containing the column indices of beneficial criteria. Non-beneficial criteria are assumed to be the remaining columns.

Value

A numeric vector containing the calculated PIV scores for each alternative.

Examples

mat <- matrix(c(80, 60, 90,
                75, 85, 95,
                70, 65, 85,
                60, 75, 80),
              nrow = 4, byrow = TRUE)
colnames(mat) <- c("Criterion 1", "Criterion 2", "Criterion 3")
weights <- c(0.4, 0.3, 0.3)
beneficial.vector <- c(1, 2, 3)
apply.PIV(mat, weights, beneficial.vector)

RMCDA documentation built on June 8, 2025, 11:14 a.m.