cal_table: Table of calibration

View source: R/cal_table.R

cal_tableR Documentation

Table of calibration

Description

Use to obtain a calibration table for a predictive model

Usage

cal_table(predictr = NULL, fit = NULL, risk_ntile = 10, risk_class = NULL)

Arguments

predictr

Output from the predictr function (alternative to fit parameter)

fit

Logistic regression fit object (alternative to predictr parameter)

risk_ntile

Numerical value specifying the number of predictive risk quantiles (default=10)

risk_class

Numerical list specifying the cutoffs for predictive risk classes (default=NULL; range: 0 to 1)

Value

Tibble of the number of events / sample per risk quantile or risk classes


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