computeAuc: Compute the area under the ROC curve

View source: R/EvaluationSummary.R

computeAucR Documentation

Compute the area under the ROC curve

Description

Compute the area under the ROC curve

Usage

computeAuc(prediction, confidenceInterval = FALSE)

Arguments

prediction

A prediction object as generated using the predict functions.

confidenceInterval

Should 95 percebt confidence intervals be computed?

Details

Computes the area under the ROC curve for the predicted probabilities, given the true observed outcomes.

Value

A data.frame containing the AUC and optionally the 95% confidence interval

Examples

prediction <- data.frame(
  value = c(0.1, 0.2, 0.3, 0.4, 0.5),
  outcomeCount = c(0, 1, 0, 1, 1))
computeAuc(prediction)

OHDSI/PatientLevelPrediction documentation built on Feb. 14, 2025, 9:44 a.m.