scores_by_scenario: Get the aggregated scores for each scenario

Description Usage Arguments Value

View source: R/scores_by_scenario.R

Description

Get the aggregated scores for each scenario

Usage

1
scores_by_scenario(weighedEstimates, estimateCols, fun = sum, ...)

Arguments

weighedEstimates

The 'weighedEstimates' object as created by [mdmcda::build_weighed_estimate_df()] and filled with the desired weighed estimates by [mdmcda::weigh_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.


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