Description Usage Arguments Value See Also Examples
Generate data used to plot a linear partial value function for a particular criteria given model outcomes.
1 2 | lpvf_plot_data(x, criteria_min = NULL, criteria_max = NULL,
optimal = c("low", "high"), length_out = 1000)
|
x |
Model outcomes for a particular criteria on the original scale. |
criteria_min |
A vector of minimum values for each criterion. If |
criteria_max |
A vector of maximum values for each criterion. If |
optimal |
If |
length_out |
Number of points between minimum and maximum values of
|
A data.table
containing x
and y
coordinates for
a line plot.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.