apply.MAIRCA: Apply Multi-Attributive Real Ideal Comparative Analysis...

View source: R/MAIRCA.R

apply.MAIRCAR Documentation

Apply Multi-Attributive Real Ideal Comparative Analysis (MAIRCA)

Description

R implementation of the MAIRCA method. The MAIRCA method computes the gap between ideal (theoretical) and empirical ratings to rank alternatives.

Usage

apply.MAIRCA(mat, weights, types)

Arguments

mat

A numeric matrix. Rows are alternatives; columns are criteria.

weights

A numeric vector of weights corresponding to criteria columns. Must sum to 1.

types

An integer vector of the same length as weights. Use 1 for a profit criterion and -1 for a cost criterion.

Value

A numeric vector with the MAIRCA preference values for each alternative. Higher values indicate more preferred alternatives.

Examples

# Example usage
mat <- matrix(c(70, 245, 16.4, 19,
                52, 246, 7.3, 22,
                53, 295, 10.3, 25,
                63, 256, 12.0, 8,
                64, 233, 5.3, 17),
              nrow = 5, byrow = TRUE)
weights <- c(0.04744, 0.02464, 0.51357, 0.41435)
types <- c(1, 1, 1, 1)
apply.MAIRCA(mat, weights, types)

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