has.partial.auc

0th

Percentile

Does the ROC curve have a partial AUC?

This function determines if the ROC curve has a partial AUC.

Keywords
programming, logic, ROC
Usage
has.partial.auc(roc)
# S3 method for auc
has.partial.auc(roc)
# S3 method for smooth.roc
has.partial.auc(roc)
# S3 method for roc
has.partial.auc(roc)
Arguments
roc

the ROC curve to check.

Value

TRUE if the AUC is a partial AUC, FALSE otherwise.

If the AUC is not defined (i. e. if roc was called with AUC=FALSE), returns NULL.

See Also

auc

Aliases
  • has.partial.auc
  • has.partial.auc.smooth.roc
  • has.partial.auc.auc
  • has.partial.auc.roc
Examples
# NOT RUN {
data(aSAH)

# Full AUC
roc1 <- roc(aSAH$outcome, aSAH$s100b)
has.partial.auc(roc1)
has.partial.auc(auc(roc1))
has.partial.auc(smooth(roc1))

# Partial AUC
roc2 <- roc(aSAH$outcome, aSAH$s100b, partial.auc = c(1, 0.9))
has.partial.auc(roc2)
has.partial.auc(smooth(roc2))

# No AUC
roc3 <- roc(aSAH$outcome, aSAH$s100b, auc = FALSE)
has.partial.auc(roc3)
# }
Documentation reproduced from package pROC, version 1.17.0.1, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.