% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ModelMetrics.R \name{ppv} \alias{ppv} \alias{precision} \title{Positive Predictive Value} \usage{ ppv(actual, predicted, cutoff = 0.5) } \arguments{ \item{actual}{A vector of the labels} \item{predicted}{A vector of predicted values} \item{cutoff}{A cutoff for the predicted values} } \description{ True Positives / (True Positives + False Positives) } \examples{ data(testDF) glmModel <- glm(y ~ ., data = testDF, family="binomial") Preds <- predict(glmModel, type = 'response') ppv(testDF$y, Preds, cutoff = 0) precision(testDF$y, Preds, cutoff = 0) }