plotroc: Plot crude and model-based ROC curves

Description Usage Arguments Value Examples

View source: R/plots.R

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

1
plotroc(densities)

Arguments

densities

Densities object produced by Wdensities.

Value

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

Examples

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

wevid documentation built on Sept. 12, 2019, 5:04 p.m.