getPredictionDistribution {PatientLevelPrediction} | R Documentation |
Calculates the prediction distribution
Description
Calculates the prediction distribution
Usage
getPredictionDistribution(
prediction,
predictionType = "binary",
typeColumn = "evaluation"
)
Arguments
prediction |
A prediction object |
predictionType |
The type of prediction (binary or survival) |
typeColumn |
A column that is used to stratify the results |
Details
Calculates the quantiles from a predition object
Value
The 0.00, 0.1, 0.25, 0.5, 0.75, 0.9, 1.00 quantile pf the prediction, the mean and standard deviation per class
Examples
prediction <- data.frame(rowId = 1:100,
outcomeCount = stats::rbinom(1:100, 1, prob=0.5),
value = runif(100),
evaluation = rep("Train", 100))
getPredictionDistribution(prediction)
[Package PatientLevelPrediction version 6.4.1 Index]