recall: Calculate the Recall for predictions

Description Usage Arguments Value Examples

Description

This function takes the predictions of a model, (can be either binary 0 or 1, or continous numeric [0,1]) and calculates the recall based on the predictions. Given that predictions need to binary for the recall calculates you need to pass in a threshold to but the predictions off. If the predictions are already binary, then pass in .5

Usage

1
recall(predictions, outcomes, threshold)

Arguments

predictions

list of numerics, predicted values

outcomes

list of numerics, actual values/outcomes

threshold

numeric, value between 0 - 1 to cut predictions that are continous within binary 0s and 1s

Value

numeric, returns recall value

Examples

1
2
recall(predictions = FakePredictionResults$est.risk.score,
outcomes = FakePredictionResults$true.risk.bin, threshold = .5)

ksboxer/CDIPATools documentation built on June 5, 2019, 8:29 a.m.