Health Data Science (Jan 2023)

simpleNomo: A Python Package of Making Nomograms for Visualizable Calculation of Logistic Regression Models

  • Haoyang Hong,
  • Shenda Hong

DOI
https://doi.org/10.34133/hds.0023
Journal volume & issue
Vol. 3

Abstract

Read online

Background: Logistic regression models are widely used in clinical prediction, but their application in resource-poor settings or areas without internet access can be challenging. Nomograms can serve as a useful visualization tool to speed up the calculation procedure, but existing nomogram generators often require the input of raw data, inhibiting the transformation of established logistic regression models that only provide coefficients. Developing a tool that can generate nomograms directly from logistic regression coefficients would greatly increase usability and facilitate the translation of research findings into patient care. Methods: We designed and developed simpleNomo, an open-source Python toolbox that enables the construction of nomograms for logistic regression models. Uniquely, simpleNomo allows for the creation of nomograms using only the coefficients of the model. Further, we also devoloped an online website for nomogram generation. Results: simpleNomo properly maintains the predictive ability of the original logistic regression model and easy to follow. simpleNomo is compatible with Python 3 and can be installed through Python Package Index (PyPI) or https://github.com/Hhy096/nomogram. Conclusion: This paper presents simpleNomo, an open-source Python toolbox for generating nomograms for logistic regression models. It facilitates the process of transferring established logistic regression models to nomograms and can further convert more existing works into practical use.