cal_metric | R Documentation |
Use to obtain calibration metrics for a predictive model
cal_metric(predictr = NULL, fit = NULL, hltest = F, risk_ntile = 10)
predictr |
Output from the predictr function (alternative to fit parameter) |
fit |
Logistic regression fit object (alternative to predictr parameter) |
hltest |
Logical value specifying if a Hosmer–Lemeshow test should be performed (default=FALSE) |
risk_ntile |
Numerical value specifying the number of quantiles for the Hosmer–Lemeshow test (default=10) |
Dataframe with the calibration slope and intecept (+/- Hosmer–Lemeshow test)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.