View source: R/bayes_curves_functions.R
| plot_bree | R Documentation |
Creates a plot showing the base-rate shift required for one procedure to match another's diagnostic value.
plot_bree(bree_obj, show_reference = TRUE)
bree_obj |
List output from make_bree_curve() |
show_reference |
Logical. Whether to show reference line at delta = 0. Default = TRUE. |
The BREE curve shows how much the base rate (prior probability) would need to shift for Procedure B to yield the same posterior as Procedure A.
Positive delta: Procedure A is more diagnostic (B needs higher base rate to match) Negative delta: Procedure B is more diagnostic (B needs lower base rate to match) Zero delta: Procedures are equally diagnostic
A ggplot2 object
data(lineup_example)
odd <- seq(1, nrow(lineup_example), by = 2)
bree <- make_bree_curve(lineup_example[odd, ], lineup_example[-odd, ])
plot_bree(bree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.