weigh_multiEstimateDf: Weigh estimates in a multiEstimateDf

Description Usage Arguments Value

View source: R/weigh_multiEstimateDf.R

Description

Weigh estimates in a multiEstimateDf

Usage

1
2
3
4
5
6
weigh_multiEstimateDf(
  multiEstimateDf,
  weightProfiles,
  scorer,
  weightProfileNames = names(weightProfiles)
)

Arguments

multiEstimateDf

A multi estimate data frame that should contain columns 'decision_id', 'decision_label', 'alternative_value', 'alternative_label', 'criterion_id', 'criterion_label', and one or more estimates in columns named with the scorer identifiers. Columns with the '_id' suffix contain identifiers, and columns with the '_label' suffix contain human-readable labels. This dataframe is stored in the object called 'multiEstimateDf' returned by a call to [read_performance_tables()] to read a set of scored performance tables.

scorer

The name of the scorer whose estimates to process.

weightProfileNames

The weight profile name(s) to process.

weight_profiles

The weight profiles: a named list of vectors, where every vector element's value is the weight of a criterion, that element's name is the criterion's identifier, and the vector's name is the identifier of the weight profile.

Value

The 'multiEstimateDf' with columns appended with the weights and the weighed estimates.


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