calibrationLine: calibrationLine

View source: R/EvaluationSummary.R

calibrationLineR Documentation

calibrationLine

Description

calibrationLine

Usage

calibrationLine(prediction, numberOfStrata = 10)

Arguments

prediction

A prediction object

numberOfStrata

The number of groups to split the prediction into

Value

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

Examples

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)

OHDSI/PatientLevelPrediction documentation built on Feb. 14, 2025, 9:44 a.m.