Get the aggregated scores for each scenario

scores_by_scenario(weightedEstimates, estimateCols, fun = sum, ...)

Arguments

weightedEstimates

The `weightedEstimates` object as created by [mdmcda::build_weighted_estimate_df()] and filled with the desired weighted estimates by [mdmcda::weight_estimates_by_profile()].

estimateCols

The column name(s) of the estimates to aggregate using function `fun`

fun

The function to use for the aggregation.

...

Additional arguments are passed to `fun`.

Value

A data frame with the scenario identifiers and the aggregated scores.