tooluniverse-diagnostic-test-evaluation

Installation
SKILL.md

Diagnostic Test / Biomarker Accuracy Evaluation

Judge how well a test or biomarker discriminates disease — at a fixed cutoff (2×2) or across all cutoffs (ROC) — and turn a result into a probability of disease.

Which case are you in?

You have… Go to
A 2×2 table (TP/FP/TN/FN) at a fixed cutoff Step 1 (Epidemiology_diagnostic)
A continuous biomarker score + true labels Step 2 (ROC / AUC / Youden, Python)
A test's sens/spec + a patient's pre-test probability Step 3 (Epidemiology_bayesian)

Step 1 — Fixed-cutoff metrics from a 2×2 table

tu run Epidemiology_diagnostic '{"operation":"diagnostic","tp":90,"fp":10,"tn":180,"fn":20}'

Returns sensitivity, specificity, PPV, NPV, accuracy, LR_pos, LR_neg, and the sample prevalence.

Installs
40
GitHub Stars
1.5K
First Seen
Jun 4, 2026
tooluniverse-diagnostic-test-evaluation — mims-harvard/tooluniverse