Debian Codegraph @

man/recall.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/ModelMetrics.R
3 \name{recall}
4 \alias{recall}
5 \alias{sensitivity}
6 \alias{tpr}
7 \title{Recall, Sensitivity, tpr}
8 \usage{
9 recall(actual, predicted, cutoff = 0.5)
10 }
11 \arguments{
12 \item{actual}{A vector of the labels}
13
14 \item{predicted}{A vector of predicted values}
15
16 \item{cutoff}{A cutoff for the predicted values}
17 }
18 \description{
19 True Positives / (True Positives + False Negatives)
20 }
21 \examples{
22 data(testDF)
23 glmModel <- glm(y ~ ., data = testDF, family="binomial")
24 Preds <- predict(glmModel, type = 'response')
25
26 recall(testDF$y, Preds, cutoff = 0)
27 sensitivity(testDF$y, Preds, cutoff = 0)
28 tpr(testDF$y, Preds, cutoff = 0)
29
30 }