ciAUC.rocit | R Documentation |
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"
.
## S3 method for class 'rocit'
ciAUC(
object,
level = 0.95,
delong = FALSE,
logit = FALSE,
nboot = NULL,
step = FALSE,
... = NULL
)
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 |
... |
|
An object of class "rocitaucci"
.
rocit
, ciROC.rocit
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.