Learn R Programming

EvalTest (version 1.0.5)

compute_indicators: 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)

Value

A list with all diagnostic indicators and confidence intervals

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)

Examples

Run this code
compute_indicators(50, 10, 5, 100, prev = 0.1)

Run the code above in your browser using DataLab