ciAUC.rocit {ROCit} | R Documentation |
Confidence Interval of AUC
Description
ciAUC
constructs confidence interval
of area under curve (AUC) of receiver operating characteristic (ROC)
curve. This is an S3 method defined for object of class "rocit"
.
Usage
## S3 method for class 'rocit'
ciAUC(
object,
level = 0.95,
delong = FALSE,
logit = FALSE,
nboot = NULL,
step = FALSE,
... = NULL
)
Arguments
object |
An object of class |
level |
Level of confidence, must be within the range (0 1). Default is 0.95. |
delong |
Logical; indicates whether DeLong formula should
be used to estimate the variance of AUC. Default is |
logit |
Logical; indicates whether confidence interval of
logit transformed AUC should be evaluated first. Default is |
nboot |
Number of bootstrap samples, if bootstrap method is desired.
Default is NULL. If a numeric value is specified, overrides
|
step |
Logical, default in |
... |
|
Value
An object of class "rocitaucci"
.
See Also
Examples
data("Diabetes")
logistic.model <- glm(as.factor(dtest)~chol+age+bmi,
data = Diabetes,family = "binomial")
score <- logistic.model$fitted.values
class <- logistic.model$y
# Make the rocit objects
rocit_bin <- rocit(score = score, class = class, method = "bin")
# Confidence interval of AUC
ciAUC(rocit_bin, level = 0.9)
ciAUC(rocit_bin, delong = TRUE, logit = TRUE)