cal_metric: Obtain calibration metrics

View source: R/cal_metric.R

cal_metricR Documentation

Obtain calibration metrics

Description

Use to obtain calibration metrics for a predictive model

Usage

cal_metric(predictr = NULL, fit = NULL, hltest = F, risk_ntile = 10)

Arguments

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)

Value

Dataframe with the calibration slope and intecept (+/- Hosmer–Lemeshow test)


kamclean/predictr documentation built on Aug. 14, 2022, 4:35 a.m.