ReferenceRangeR: a novel tool designed to facilitate reference interval estimation and verification
-
Gunnar Brandhorst
, Maike Voß
, Werner Wosniok , Farhad Arzideh , Rainer Haeckel, Daniel Rosenkranz
, Thomas Streichertand Astrid Petersmann
Abstract
Objectives
Reference intervals (RIs) are essential for interpreting laboratory test results. It is recommended that each medical laboratory establishes and reviews its own RIs. The use of direct methods is often unfeasible for most laboratories, while indirect methods are a more viable alternative. However, these methods require not only medical, but also statistical and technical expertise, thereby limiting accessibility for many laboratories. To address this challenge, a web-based application was developed to facilitate the estimation and verification of RIs using real-world laboratory data.
Methods
The application was developed using R Studio and the Shiny web framework. The tool supports five indirect methods for reference interval estimation: refineR, TMC, TML, kosmic and reflimR. Furthermore, a Docker container was designed to enable a secure local deployment.
Results
Up to 200,000 laboratory test results can be included via a straightforward copy-and-paste input. The tool provides recommendations for sex-based stratification by performing statistical analysis. In addition, a drift-detection algorithm was developed to analyze whether age-based stratification is necessary. The results of RI estimation are displayed and visualized alongside the underlying data distribution. Existing RIs can be verified by comparing them against calculated intervals.
Conclusions
ReferenceRangeR is a user-friendly tool for estimating and verifying RIs using real-world laboratory data, eliminating the need for statistical or technological expertise, thereby supporting laboratory professionals in meeting the current regulatory standards.
-
Research ethics: Not applicable.
-
Informed consent: Not applicable.
-
Author contributions: All authors have accepted responsibility for the entire content of this manuscript and approved its submission.
-
Use of Large Language Models, AI and Machine Learning Tools: A LLM model was used to improve language in the manuscript.
-
Conflict of interest: The authors state no conflict of interest.
-
Research funding: None declared.
-
Data availability: The source code from the manuscript is provided on Github.
References
1. International Organization for Standardization. ISO15189:2022 – medical laboratories requirements for quality and competence. 2022.Search in Google Scholar
2. Jones, GRD, Haeckel, R, Loh, TP, Sikaris, K, Streichert, T, Katayev, A, et al.. Indirect methods for reference interval determination – review and recommendations. Clin Chem Lab Med 2018;57:20–9. https://doi.org/10.1515/cclm-2018-0073.Search in Google Scholar PubMed
3. Ammer, T, Schützenmeister, A, Prokosch, HU, Rauh, M, Rank, CM, Zierk, J. refineR: a novel algorithm for reference interval estimation from real-world data. Sci Rep 2021;11:16023. https://doi.org/10.1038/s41598-021-95301-2.Search in Google Scholar PubMed PubMed Central
4. Wosniok, W, Haeckel, R. A new indirect estimation of reference intervals: truncated minimum chi-square (TMC) approach. Clin Chem Lab Med 2019;57:1933–47. https://doi.org/10.1515/cclm-2018-1341.Search in Google Scholar PubMed
5. Arzideh, F, Wosniok, W, Gurr, E, Hinsch, W, Schumann, G, Weinstock, N, et al.. A plea for intra-laboratory reference limits. Part 2. A bimodal retrospective concept for determining reference limits from intra-laboratory databases demonstrated by catalytic activity concentrations of enzymes. Clin Chem Lab Med 2007;45:1043–57. https://doi.org/10.1515/cclm.2007.250.Search in Google Scholar
6. Haeckel, R, Wosniok, W, Arzideh, F. A plea for intra-laboratory reference limits. Part 1. General considerations and concepts for determination. Clin Chem Lab Med 2007;45. https://doi.org/10.1515/cclm.2007.249.Search in Google Scholar PubMed
7. Zierk, J, Arzideh, F, Kapsner, LA, Prokosch, HU, Metzler, M, Rauh, M. Reference interval estimation from mixed distributions using truncation points and the Kolmogorov-Smirnov distance (kosmic). Sci Rep 2020;10:1704. https://doi.org/10.1038/s41598-020-58749-2.Search in Google Scholar PubMed PubMed Central
8. Hoffmann, G, Klawitter, S, Trulson, I, Adler, J, Holdenrieder, S, Klawonn, F. A novel tool for the rapid and transparent verification of reference intervals in clinical laboratories. J Clin Med 2024;13. https://doi.org/10.3390/jcm13154397.Search in Google Scholar PubMed PubMed Central
9. Ribeiro, PJJr, Diggle, P. geoR: analysis of geostatistical data [Internet]; 2001. 1.9–5 p. https://CRAN.R-project.org/package=geoR [Accessed 7 May 2025].10.32614/CRAN.package.geoRSearch in Google Scholar
10. Ripley, B, Venables, B. MASS: support functions and datasets for Venables and Ripley’s MASS [Internet]; 2009. 7.3–65 p. https://CRAN.R-project.org/package=MASS [Accessed 7 May 2025].10.32614/CRAN.package.MASSSearch in Google Scholar
11. Wood, S. mgcv: mixed GAM computation vehicle with automatic smoothness estimation [Internet]; 2000. 1.9–3 p. https://CRAN.R-project.org/package=mgcv [Accessed 7 May 2025].10.32614/CRAN.package.mgcvSearch in Google Scholar
12. Poncet, P. modeest: mode estimation [Internet]; 2007. 2.4.0 p. https://CRAN.R-project.org/package=modeest [Accessed 7 May 2025].10.32614/CRAN.package.modeestSearch in Google Scholar
13. Jackson, C. msm: multi-state Markov and hidden Markov models in continuous time [Internet]; 2002 1.8.2 p. https://CRAN.R-project.org/package=msm [Accessed 7 May 2025].10.32614/CRAN.package.msmSearch in Google Scholar
14. Pinheiro, J, Bates, D, R Core Team. nlme: linear and nonlinear mixed effects models [Internet]; 1999. 3.1–168 p. https://CRAN.R-project.org/package=nlme [Accessed 7 May 2025].10.32614/CRAN.package.nlmeSearch in Google Scholar
15. Fasiolo, M, Griffiths, B. qgam: smooth additive quantile regression models [Internet]; 2017. 2.0.0 p. https://CRAN.R-project.org/package=qgam [Accessed 7 May 2025].10.32614/CRAN.package.qgamSearch in Google Scholar
16. Qiu, D.: supplementary non-parametric statistics methods [Internet]; 2015. https://github.com/debinqiu/snpar [Accessed 7 May 2025].Search in Google Scholar
17. Haeckel, R, Wosniok, W, Gurr, E, Peil, B. Permissible limits for uncertainty of measurement in laboratory medicine. Clin Chem Lab Med 2015;53. https://doi.org/10.1515/cclm-2014-0874.Search in Google Scholar PubMed
18. Ammer, T, Schützenmeister, A, Prokosch, HU, Zierk, J, Rank, CM, Rauh, M. RIbench: a proposed benchmark for the standardized evaluation of indirect methods for reference interval estimation. Clin Chem 2022;68:1410–24. https://doi.org/10.1093/clinchem/hvac142.Search in Google Scholar PubMed
19. Haeckel, R, Wosniok, W, Arzideh, F. Equivalence limits of reference intervals for partitioning of population data. Relevant differences of reference limits. LaboratoriumsMedizin 2016;40:199–205. https://doi.org/10.1515/labmed-2016-0002.Search in Google Scholar
20. Bhattacharya, CG. A simple method of resolution of a distribution into Gaussian components. Biometrics 1967;23:115–35. https://doi.org/10.2307/2528285.Search in Google Scholar
21. Hoffmann, RG. Statistics in the practice of medicine. JAMA 1963;185:864. https://doi.org/10.1001/jama.1963.03060110068020.Search in Google Scholar PubMed
22. Haeckel, R, Wosniok, W, Streichert, T. Review of potentials and limitations of indirect approaches for estimating reference limits/intervals of quantitative procedures in laboratory medicine. J Lab Med 2021;45:35–53. https://doi.org/10.1515/labmed-2020-0131.Search in Google Scholar
23. Clinical and Laboratory Standards Institute, editor. EP28-A3C – Defining, establishing and verifying reference intervals in the clinical laboratory: approved guideline, 3rd ed. Wayne, PA: Clinical and Laboratory Standards Institute; 2010:60 p. (Document/Clinical and Laboratory Standards Institute).Search in Google Scholar
24. Adeli, K, Higgins, V, Trajcevski, K, White-Al Habeeb, N. The Canadian laboratory initiative on pediatric reference intervals: a CALIPER white paper. Crit Rev Clin Lab Sci 2017;54:358–413. https://doi.org/10.1080/10408363.2017.1379945.Search in Google Scholar PubMed
25. Lim, E, Miyamura, J, Chen, JJ. Racial/ethnic-specific reference intervals for common laboratory tests: a comparison among Asians, blacks, Hispanics, and white. Hawaii J Med Public Health 2015;74:302–10.Search in Google Scholar
26. Regulation (EU) 2017/746 of the European Parliament and of the Council of 5 April 2017 on in vitro diagnostic medical devices and repealing Directive 98/79/EC and Commission Decision [Internet]. 2017. Available from: https://eur-lex.europa.eu/eli/reg/2017/746/oj.Search in Google Scholar
27. Tate, JR, Yen, T, Jones, GRD. Transference and validation of reference intervals. Clin Chem 2015;61:1012–5. https://doi.org/10.1373/clinchem.2015.243055.Search in Google Scholar PubMed
28. Farrell, C. goCrunch – indirect reference intervals on the web [Internet]; 2022. https://www.gocrunch.tech/ [Accessed 14 May 2025].Search in Google Scholar
29. Arzideh, F, Özcürümez, M, Albers, E, Haeckel, R, Streichert, T. Indirect estimation of reference intervals using first or last results and results from patients without repeated measurements. J Lab Med 2021;45:103–9. https://doi.org/10.1515/labmed-2020-0149.Search in Google Scholar
© 2025 Walter de Gruyter GmbH, Berlin/Boston