weigh_estimates_by_profile: Weigh estimates by one or more weight profiles

Description Usage Arguments Value

View source: R/weigh_estimates_by_profile.R

Description

Weigh estimates by one or more weight profiles

Usage

1
2
3
4
5
weigh_estimates_by_profile(
  weighed_estimate_df,
  weight_profiles,
  weightProfileNames = names(weight_profiles)
)

Arguments

weighed_estimate_df

A data frame with columns 'scenario_id', 'decision_id', 'alternative_value', 'criterion_id', and 'estimate'. This data frame can be produced by a call to [weigh_estimates_by_profile()].

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.

weightProfileNames

The weight profile name(s) to process.

Value

A data frame with columns 'scenario_id', 'decision_id', 'alternative_value', 'criterion_id', 'estimate', and two columns for every weight profile. These columns' names are the weight profile name appended with '_weight' and '_weighed_estimate'.


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