aggregate_estimates_by_criterionCluster.Rd
Aggregate estimates by criterion clusters (parent criteria)
aggregate_estimates_by_criterionCluster( multiEstimateDf, estimateCol, parentCriterionId_col = mdmcda::opts$get("parentCriterionId_col"), parentCriterionOrder = NULL, fun = sum, ... )
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`. |
A data frame with aggregated estimates.