Description Usage Arguments Value Examples
View source: R/quiz02Functions.R
Calculate sensitivity
1 | sensitivity(pred, truth)
|
pred |
number or boolean vector of predicted values (0 or F = negative, 1 or T = positive) |
truth |
number or boolean vector of true values (0 or F = negative, 1 or T = positive) |
The sensitivity, formula: sensitivity = # True Positives / (# True Positives + # False Negatives)
1 2 | sensitivity(c(0,1,0),c(1,1,1))
sensitivity(c(1,1,1),c(1,1,0))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.