Description Usage Arguments Value Examples
Get summary calibration indices for binary outcomes and class probabilities. Optionally, get bootstrap-based confidence intervals using validation data.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
data |
Data frame. |
y |
Binary outcome. |
p |
Probabilites. |
val |
Data frame. |
conf.int |
Logical. Default is FALSE. |
level |
Confidence level. Default is 0.95. |
na.rm |
Logical. Default is FALSE. |
span |
Passed on to |
... |
Arguments passed on to |
p.calibrate |
Calibrated predictions. |
A tibble with as many rows and calibration indices. The number of columns can vary based on whether confident intervals are requested.
1 2 | dd <- data.frame(y = rbinom(50, 1, 0.5), p = runif(100, 0, 1))
cal_ind(dd, y, p)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.