Revision bbfd8290a255cf1d55a1eed28f5501736e754842 authored by Christian Thiele on 14 April 2020, 07:50:10 UTC, committed by cran-robot on 14 April 2020, 07:50:10 UTC
1 parent 72e43cc
specificity.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/metrics.R
\name{specificity}
\alias{specificity}
\title{Calculate specificity}
\usage{
specificity(fp, tn, ...)
}
\arguments{
\item{fp}{(numeric) number of false positives.}
\item{tn}{(numeric) number of true negatives.}
\item{...}{for capturing additional arguments passed by method.}
}
\description{
Calculate specificity from true positives, false positives, true negatives and false negatives.
The inputs must be vectors of equal length. \cr \cr
specificity = tn / (tn + fp) \cr
}
\examples{
specificity(10, 5, 20, 10)
specificity(c(10, 8), c(5, 7), c(20, 12), c(10, 18))
}
\seealso{
Other metric functions:
\code{\link{F1_score}()},
\code{\link{Jaccard}()},
\code{\link{abs_d_ppv_npv}()},
\code{\link{abs_d_sens_spec}()},
\code{\link{accuracy}()},
\code{\link{cohens_kappa}()},
\code{\link{cutpoint}()},
\code{\link{false_omission_rate}()},
\code{\link{metric_constrain}()},
\code{\link{misclassification_cost}()},
\code{\link{npv}()},
\code{\link{odds_ratio}()},
\code{\link{p_chisquared}()},
\code{\link{plr}()},
\code{\link{ppv}()},
\code{\link{precision}()},
\code{\link{prod_ppv_npv}()},
\code{\link{prod_sens_spec}()},
\code{\link{recall}()},
\code{\link{risk_ratio}()},
\code{\link{roc01}()},
\code{\link{sensitivity}()},
\code{\link{sum_ppv_npv}()},
\code{\link{sum_sens_spec}()},
\code{\link{total_utility}()},
\code{\link{tpr}()},
\code{\link{tp}()},
\code{\link{youden}()}
}
\concept{metric functions}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...