aggregate_estimates_by_decision.Rd
Aggregate the (potentially weighted) estimates by decision
aggregate_estimates_by_decision( multiEstimateDf, estimateCol, decisionId_col = mdmcda::opts$get("decisionId_col"), alternativeValue_col = mdmcda::opts$get("alternativeValue_col"), fun = sum, ... )
multiEstimateDf | The `multiEstimateDf`. |
---|---|
estimateCol | The name of the column with the estimates to aggregate. |
decisionId_col, alternativeValue_col | The columns containing the decision identifiers and the values in each decision |
fun | The function to use to aggregate the estimates. |
... | Any additional arguments are passed to `fun`. |
A data frame with aggregated estimates.