Debian Codegraph @

man/npv.Rd

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