outrankMatrix: Outranking matrix

Description Usage Arguments Value Examples

View source: R/coin_aggregate.R

Description

Constructs an outranking matrix based on a data frame of indicator data and corresponding weights. This function is used inside aggregate().

Usage

1
outrankMatrix(ind_data, w = NULL)

Arguments

ind_data

A data frame or matrix of indicator data, with observations as rows and indicators as columns. No other columns should be present (e.g. label columns).

w

A vector of weights, which should have length equal to ncol(ind_data). Weights are relative and will be re-scaled to sum to 1. If w is not specified, defaults to equal weights.

Value

A list with:

Examples

1
2
3
4
5
6
# get a sample of a few indicators
ind_data <- COINr::ASEMIndData[12:16]
# calculate outranking matrix
outlist <- outrankMatrix(ind_data)
# see fraction of dominant pairs (robustness)
outlist$fracDominant

COINr documentation built on Nov. 30, 2021, 9:06 a.m.