summary.brisk_br | R Documentation |
Summarize Bayesian Benefit-Risk Scores
## S3 method for class 'brisk_br' summary(object, probs = c(0.025, 0.975), reference = NULL, ...)
object |
output from a call to |
probs |
a vector of probabilities used to obtain quantiles of the posterior of the weighted utilities for each group. |
reference |
a string indicating which group is the reference group which is used to subtract scores from other groups. |
... |
Additional arguments which throw an error if specified. |
A named list with the posterior summary, and the scores from the
object
object (which are adjusted if reference
is specified).
set.seed(1132) out <- br( benefit("CV", function(x) x, weight = 1), risk("DVT", function(x) - .5 * x, weight = 1), 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) # adjusted relative to PBO 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.