plot.brisk_br | R Documentation |
Plot Benefit/Risk Posterior Scores
## S3 method for class 'brisk_br' plot(x, reference = NULL, ...)
x |
output from a call to |
reference |
a string indicating which group is the reference group which is used to subtract scores from other groups. |
... |
additional arguments throw an error. |
A ggplot object plotting the posterior densities of the weighted utility scores.
Other plots:
plot_utility()
set.seed(1132) ilogit <- function(x) 1 / (1 + exp(-x)) out <- mcda( benefit("CV", function(x) ilogit(x), weight = .75), risk("DVT", function(x) ilogit(- .5 * x), weight = .25), br_group( label = "PBO", CV = rnorm(1e4, .1), DVT = rnorm(1e4, .1) ), br_group( label = "TRT", CV = rnorm(1e4, 2), DVT = rnorm(1e4, 1) ) ) out summary(out, probs = c(.025, .5, .975)) summary(out, reference = "PBO") plot(out) plot(out, reference = "PBO") plot_utility(out) plot_utility(out, reference = "PBO") plot_utility(out, stacked = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.