Learn R Programming

ModelMetrics (version 1.2.2.2)

recall: Recall, Sensitivity, tpr

Description

True Positives / (True Positives + False Negatives)

Usage

recall(actual, predicted, cutoff = 0.5)

Arguments

actual

A vector of the labels

predicted

A vector of predicted values

cutoff

A cutoff for the predicted values

Examples

Run this code
# NOT RUN {
data(testDF)
glmModel <- glm(y ~ ., data = testDF, family="binomial")
Preds <- predict(glmModel, type = 'response')

recall(testDF$y, Preds, cutoff = 0)
sensitivity(testDF$y, Preds, cutoff = 0)
tpr(testDF$y, Preds, cutoff = 0)

# }

Run the code above in your browser using DataLab