Skip to content
Snippets Groups Projects
compute_roc_curve.Rd 660 B
Newer Older
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/receiver_operating_characteristic.R
\name{compute_roc_curve}
\alias{compute_roc_curve}
\title{Computes the ROC curve.}
\usage{
compute_roc_curve(dt)
}
\arguments{
\item{dt}{A data frame with columns truth (first column) and score (second column).}
}
\value{
A data frame with specificity, sensitivity, and threshold values.
}
\description{
This function takes a data frame with binary truth values and predicted scores,
computes the ROC curve, and returns a data frame containing specificity, sensitivity, and threshold values.
This function is inspired by the yardstick package.
}