View source: R/Mod_BrierScoreCI.R
BrierScoreCI | R Documentation |
Calculate bootstrap intervals for the Brier score, based on a glm
.
BrierScoreCI(
object,
scaled = FALSE,
conf.level = 0.95,
sides = c("two.sided", "left", "right"),
...
)
object |
the model object as returned by glm. |
scaled |
logical, defining if scaled or not. Default is |
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 |
a numeric vector with 3 elements:
mean |
mean |
lwr.ci |
lower bound of the confidence interval |
upr.ci |
upper bound of the confidence interval |
Andri Signorell andri@signorell.net
BrierScore
utils::data(Pima.te, package = "MASS")
r.logit <- glm(type ~ ., data=Pima.te, family="binomial")
# calculate Brier score with confidence intervals
BrierScore(r.logit)
BrierScoreCI(r.logit, R=99) # use higher R in real life!
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.