Description Usage Arguments Value Examples
View source: R/coin_aggregate.R
Constructs an outranking matrix based on a data frame of indicator data and corresponding weights. This function is used inside
aggregate()
.
1 | outrankMatrix(ind_data, w = NULL)
|
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 |
A list with:
.$OutRankMatrix
the outranking matrix with nrow(ind_data)
rows and columns (matrix class).
.$nDominant
the number of dominance/robust pairs
.$fracDominant
the percentage of dominance/robust pairs
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.