summary.brisk_br {brisk} | R Documentation |
Summarize Bayesian Benefit-Risk Scores
Description
Summarize Bayesian Benefit-Risk Scores
Usage
## S3 method for class 'brisk_br'
summary(object, probs = c(0.025, 0.975), reference = NULL, ...)
Arguments
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. |
Value
A named list with the posterior summary, and the scores from the
object
object (which are adjusted if reference
is specified).
Examples
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)
[Package brisk version 0.1.0 Index]