npv: Negative Predictive Value

Description Usage Arguments Examples

Description

True Negatives / (True Negatives + False Negatives)

Usage

1
npv(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

1
2
3
4
5
data(testDF)
glmModel <- glm(y ~ ., data = testDF, family="binomial")
Preds <- predict(glmModel, type = 'response')

npv(testDF$y, Preds, cutoff = 0)

JackStat/ModelMetrics documentation built on May 7, 2019, 10:17 a.m.