This approach is innovative because it addresses several challenges in diagnostic test evaluation through automation, flexibility, and scalability. Here’s why it stands out:
1. Evaluation of Multiple Diagnostic Tests Simultaneously:
Unlike many existing tools that focus on a single test, this macro enables the simultaneous evaluation of multiple diagnostic tests using individual-level data. This is particularly valuable for comparative studies, saving significant time and effort.
2. Automation of Complex Analyses:
By automating the creation of 2x2 summary tables, diagnostic accuracy measures, and graphics (AUROC, AUPRC), the macro reduces manual intervention. This minimizes errors, speeds up the analysis process, and ensures consistent and reproducible results.
3. Comprehensive Diagnostic Metrics:
The macro goes beyond basic sensitivity and specificity, offering over 15 diagnostic accuracy measures, including predictive values, likelihood ratios, AUROC, AUPRC, diagnostic odds ratio, and disease prevalence. This comprehensive approach provides deeper insights for decision-making.
4. Publication-Ready Outputs:
Generating high-quality Word and Excel reports, along with overlaid AUROC and AUPRC graphics, allows researchers to present findings directly from the analysis. This streamlines the reporting process and enhances collaboration and communication of results.
5. Accessibility for Resource-Limited Settings:
The macro supports the evaluation of alternative diagnostic methods like dried blood spots (DBS), which are more affordable and accessible in low-resource environments. By enabling rigorous testing of these methods, it promotes the adoption of innovations that can improve global health equity.
6. Customizable and Reproducible:
The macro is easily modifiable, allowing users to adapt it for other diagnostic measures, data structures, or variance estimation methods. This flexibility makes it applicable to diverse research contexts and datasets.
7. Reduction of Technical Barriers:
The macro simplifies the workflow for researchers with varying levels of programming expertise. By requiring only a few input parameters (e.g., dataset, test variables, thresholds), it ensures ease of use while maintaining robust functionality.
Overall, this innovative approach bridges the gap between diagnostic test evaluation, automation, and user-friendliness, empowering researchers to conduct accurate, efficient, and reproducible analyses, especially in critical areas like global health research.
This work was published by BMC Medical Informatics and Decision Making (See Ref.). The source code for this SAS macro and data used for demonstration are available from GitHub repository at
https://github.com/kmuthusi/diagnostic-testing-macroReference:
Muthusi, J.K., Young, P.W., Mboya, F.O. et al. %diag_test: a generic SAS macro for evaluating diagnostic accuracy measures for multiple diagnostic tests. BMC Med Inform Decis Mak 25, 21 (2025).
https://doi.org/10.1186/s12911-024-02808-5