Title: Tools for Evaluating Diagnostic Test Performance
Version: 1.0.6
Maintainer: Nassim AYAD <nassim.ayad.ph@gmail.com>
Description: Evaluates diagnostic test performance using data from laboratory or diagnostic research. It includes functions to compute common performance indicators along with their confidence intervals, and offers an interactive 'shiny' application for comprehensive analysis including ROC curve visualization and related metrics. It supports both binary and continuous test variables. It allows users to compute key performance indicators and visualize Receiver Operating Characteristic (ROC) curves, determine optimal cut-off thresholds, display confusion matrix, and export publication-ready plot. It aims to facilitate the application of statistical methods in diagnostic test evaluation by healthcare professionals. Methodological details and references for the computation of performance indicators are provided in the package vignette.
Depends: R (≥ 4.2.1)
Imports: DT, ggplot2, ggpubr, openxlsx, pROC, readxl, shiny, shinydashboard, stats, binom
License: MIT + file LICENSE
Encoding: UTF-8
RoxygenNote: 7.3.3
Suggests: knitr, rmarkdown, testthat (≥ 3.0.0)
VignetteBuilder: knitr
Config/testthat/edition: 3
NeedsCompilation: no
Packaged: 2026-02-20 20:55:10 UTC; maison
Author: Nassim AYAD ORCID iD [aut, cre] (affiliation: Laboratory of Modeling and Biostatistics, Pasteur Institute of Algeria)
Repository: CRAN
Date/Publication: 2026-02-20 21:20:02 UTC

Compute diagnostic test indicators

Description

This function computes sensitivity, specificity, predictive values, likelihood ratios, accuracy, and Youden index with their confidence intervals (with desired confidence level), 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(58, 15, 14, 26, prev = 0.1, conf = 0.95)

Launch the EvalTest Shiny application

Description

This function starts the Shiny application included in the EvalTest package, which aims to evaluate diagnostic tests performance.

Usage

run_app()

Value

The function does not return a value; it launches a Shiny application.

Examples

if (interactive()) {
  library(EvalTest)
  run_app()
}