plotroc: Plot crude and model-based ROC curves

View source: R/plots.R

plotrocR Documentation

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

data(cleveland)
densities <- with(cleveland, Wdensities(y, posterior.p, prior.p))
plotroc(densities)


mcol/wevid documentation built on March 22, 2022, 12:07 a.m.