Learn R Programming

wevid (version 0.6.2)

plotroc: Plot crude and model-based ROC curves

Description

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.

Usage

plotroc(densities)

Arguments

densities

Densities object produced by Wdensities.

Value

A ggplot object representing crude and model-based ROC curves.

Examples

Run this code
# NOT RUN {
data(cleveland)
densities <- with(cleveland, Wdensities(y, posterior.p, prior.p))
plotroc(densities)

# }

Run the code above in your browser using DataLab