Learn R Programming

PatientLevelPrediction (version 6.4.1)

calibrationLine: calibrationLine

Description

calibrationLine

Usage

calibrationLine(prediction, numberOfStrata = 10)

Value

A list containing the calibrationLine coefficients, the aggregate data used to fit the line and the Hosmer-Lemeshow goodness of fit test

Arguments

prediction

A prediction object

numberOfStrata

The number of groups to split the prediction into

Examples

Run this code
prediction <- data.frame(
  value = c(0.1, 0.2, 0.3, 0.4, 0.5),
  outcomeCount = c(0, 1, 0, 1, 1))
calibrationLine(prediction, numberOfStrata = 1)

Run the code above in your browser using DataLab