compute_indicators: Compute diagnostic test indicators

View source: R/compute_indicators.R

compute_indicatorsR Documentation

Compute diagnostic test indicators

Description

This function computes sensitivity, specificity, predictive values, likelihood ratios, accuracy, and Youden index with confidence intervals based on a 2x2 table of diagnostic test results.

Usage

compute_indicators(tp, fp, fn, tn, prev, conf = 0.95)

Arguments

tp

True positives

fp

False positives

fn

False negatives

tn

True negatives

prev

Prevalence (numeric between 0 and 1)

conf

Confidence level (default 0.95)

Value

A list with all diagnostic indicators and confidence intervals

Examples

compute_indicators(50, 10, 5, 100, prev = 0.1)

EvalTest documentation built on Nov. 17, 2025, 5:06 p.m.