sens_spec: sensitivity and specificity

View source: R/sens_spec.R

sens_specR Documentation

sensitivity and specificity

Description

calculate the sensitivity and specificity from a grouping and a measurement

Usage

sens_spec(status, measure, data = NULL, disease.value = 1, direction = 1)

Arguments

status

the grouping of diagnosis

measure

a predictive value

data

a data frame or similar

disease.value

if status is not 0/1 specify the value indicating a positive diagnosis

direction

if 1 then a higher value is more indicative of a positive diagnosis, anything the other way around


renlund/ucR documentation built on March 25, 2023, 10:10 a.m.