compare_dca | R Documentation |
Plot BayesDCA comparison
compare_dca(
obj,
strategies = NULL,
colors = NULL,
labels = NULL,
plot_list = FALSE,
.evpi = FALSE,
type = c("best", "useful", "pairwise"),
linewidth = 1.5,
...
)
obj |
BayesDCA or BayesDCASurv object |
strategies |
Character vector with models or tests to plot. If null, compares either first two in |
colors |
Named vector with color for each model or test. If provided for a subset of models or tests, only that subset will be plotted. |
labels |
Named vector with label for each model or test. |
plot_list |
If TRUE, returns a list of separate ggplot objects. |
.evpi |
If TRUE, adds validation EVPI to plots – see Sadatsafavi et al. (2020)(see https://arxiv.org/abs/2208.03343). |
type |
One of "best", "useful", or "pairwise". |
linewidth |
Width of plotted lines. |
A patchwork/ggplot object or a list of ggplot objects.
data(PredModelData)
fit <- dca(PredModelData)
compare_dca(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.