powered by
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 object produced by Wdensities.
Wdensities
A ggplot object representing crude and model-based ROC curves.
# NOT RUN { data(cleveland) densities <- with(cleveland, Wdensities(y, posterior.p, prior.p)) plotroc(densities) # }
Run the code above in your browser using DataLab