Description Usage Arguments Value Examples
Receiver-Operator Characteristic (ROC) plot for models with binary outcomes
1 | ggs_rocplot(D, outcome, fully_bayesian = FALSE)
|
D |
Data frame whith the simulations. Notice that only the posterior outcomes are needed, and so either the previous call to ggs() should have limited the family of parameters to pass to the predicted outcomes. |
outcome |
vector (or matrix or array) containing the observed outcome variable. Currently only a vector is supported. |
fully_bayesian |
logical, false by default. When not fully Bayesian, it uses the median of the predictions for each observation by iteration. When TRUE the function plots as many ROC curves as iterations. It uses a a lot of CPU and needs more memory. Use it with caution. |
A ggplot
object
1 2 |
Loading required package: dplyr
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
Loading required package: tidyr
Loading required package: ggplot2
Loading required namespace: coda
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.