aggregate_estimates_by_criterionCluster: Aggregate estimates by criterion clusters (parent criteria)

Description Usage Arguments Value

View source: R/aggregate_estimates_by_criterionCluster.R

Description

Aggregate estimates by criterion clusters (parent criteria)

Usage

1
2
3
4
5
6
7
aggregate_estimates_by_criterionCluster(
  multiEstimateDf,
  estimateCol,
  parentCriterionId_col = mdmcda::opts$get("parentCriterionId_col"),
  fun = sum,
  ...
)

Arguments

multiEstimateDf

A 'multiEstimateDf' data frame that must contain the columns with the names specified in 'estimateCol' and 'parentCriterionId_col'.

estimateCol

The column with the estimates to use.

parentCriterionId_col

The column containing the parent criterion identifiers (i.e. the cluster identifiers).

fun

The function to use to aggregate the scores.

...

Any additional arguments are passed to 'fun'.

Value

A data frame with aggregated estimates.


Matherion/mdmcda documentation built on Dec. 31, 2020, 3:13 p.m.