lpvf_plot_data: Data to plot linear partial value function

Description Usage Arguments Value See Also Examples

View source: R/mcda.R

Description

Generate data used to plot a linear partial value function for a particular criteria given model outcomes.

Usage

1
2
lpvf_plot_data(x, criteria_min = NULL, criteria_max = NULL,
  optimal = c("low", "high"), length_out = 1000)

Arguments

x

Model outcomes for a particular criteria on the original scale.

criteria_min

A vector of minimum values for each criterion. If NULL, then the minimum value is computed automatically.

criteria_max

A vector of maximum values for each criterion. If NULL, then the maximum value is computed automatically.

optimal

If "low", then lower values of the outcome are better, and, if "high", then higher values of the outcome are better.

length_out

Number of points between minimum and maximum values of x.

Value

A data.table containing x and y coordinates for a line plot.

See Also

mcda

Examples

1
2
3
4
5
6
7
8
9
outcome <- rnorm(10, mean = 100, sd = 11)

# Using optimal
plot_data <- lpvf_plot_data(outcome, optimal = "high")
print(plot_data)

# Using criteria_min and criteria_max
plot_data <- lpvf_plot_data(outcome, criteria_min = 80, criteria_max = 130)
print(plot_data)

InnovationValueInitiative/IVI-NSCLC documentation built on July 25, 2019, 8:03 p.m.