CstatCI {DescTools} | R Documentation |
Confidence Intervals for the C Statistic (AUC)
Description
Calculate bootstrap intervals for the C statistic (Area under the curve AUC), based on a glm.
Usage
CstatCI(
object,
conf.level = 0.95,
sides = c("two.sided", "left", "right"),
...
)
Arguments
object |
the model object as returned by glm. |
conf.level |
confidence level of the interval. |
sides |
a character string specifying the side of the confidence
interval, must be one of |
... |
further arguments are passed to the |
Value
a numeric vector with 3 elements:
mean |
mean |
lwr.ci |
lower bound of the confidence interval |
upr.ci |
upper bound of the confidence interval |
Author(s)
Andri Signorell andri@signorell.net
See Also
Examples
utils::data(Pima.te, package = "MASS")
r.logit <- glm(type ~ ., data=Pima.te, family="binomial")
# calculate Brier score with confidence intervals
Cstat(r.logit)
CstatCI(r.logit, R=99) # use higher R in real life!