paretoFront: paretoFront - plot the tradeoff of cost and effect

Description Usage Arguments Details Value

View source: R/paretoFront.R

Description

Plots the pareto front–the best choice at each cost value

Usage

1
2
paretoFront(mic, outcome, costs, mapping = NULL, ..., nameCol = "name",
  costCol = "cost", scaleCol = "scale")

Arguments

mic

An MIC matrix as returned by MIC, or a model that can be coerced into one

outcome

the (character) label of the outcome

costs

A data frame containing columns for the name and cost of each intervention. Optionally, a column for the scale of the intervention (see details)

mapping

additional aesthetics to pass to ggplot (e.g. color)

...

additional arguments reserved for later use.

nameCol

the column in the data frame containing intervention names (default: "name")

costCol

the column in the data frame containing intervention costs (default: "cost")

scaleCol

column in the data frame containing intervention scales (default: "scale"). See details.

Details

Plots the Pareto front, which shows the maximal tradeoff between cost and efficiency of an intervention.

If the column named in scaleCol (default "scale") is included, this is interpreted to represent the scale of the intervention. Simple multiplication will be used to compute the overall effect of this change, assuming linearity in effect. This approach makes it possible to examine different elements of intervention (e.g. 3 sessions vs 12 sessions) that may have varying costs.

Value

A list of Pareto-optimal points, which maximize the cost/effect tradeoff


trbrick/MICr documentation built on March 7, 2020, 3:30 p.m.