View source: R/has.partial.auc.R
has.partial.auc | R Documentation |
This function determines if the ROC curve has a partial AUC.
has.partial.auc(roc)
## S3 method for class 'auc'
has.partial.auc(roc)
## S3 method for class 'smooth.roc'
has.partial.auc(roc)
## S3 method for class 'roc'
has.partial.auc(roc)
roc |
the ROC curve to check. |
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
.
auc
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.