calibrationLine {PatientLevelPrediction} | R 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)
[Package PatientLevelPrediction version 6.4.1 Index]