powered by
calibrationLine
calibrationLine(prediction, numberOfStrata = 10)
A list containing the calibrationLine coefficients, the aggregate data used to fit the line and the Hosmer-Lemeshow goodness of fit test
A prediction object
The number of groups to split the prediction into
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