plotroc | R Documentation |
While the crude ROC curve can be non-concave and is generally not smooth, the model-based ROC curve is always concave, as the corresponding densities have been adjusted to be mathematically consistent.
plotroc(densities)
densities |
Densities object produced by |
A ggplot object representing crude and model-based ROC curves.
data(cleveland) densities <- with(cleveland, Wdensities(y, posterior.p, prior.p)) plotroc(densities)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.