A shiny app for modeling the lifetime in primary breast cancer patients through phase-type distributions

Math Biosci Eng. 2024 Jan;21(1):1508-1526. doi: 10.3934/mbe.2024065. Epub 2022 Dec 28.

Abstract

Phase-type distributions (PHDs), which are defined as the distribution of the lifetime up to the absorption in an absorbent Markov chain, are an appropriate candidate to model the lifetime of any system, since any non-negative probability distribution can be approximated by a PHD with sufficient precision. Despite PHD potential, friendly statistical programs do not have a module implemented in their interfaces to handle PHD. Thus, researchers must consider others statistical software such as R, Matlab or Python that work with the compilation of code chunks and functions. This fact might be an important handicap for those researchers who do not have sufficient knowledge in programming environments. In this paper, a new interactive web application developed with shiny is introduced in order to adjust PHD to an experimental dataset. This open access app does not require any kind of knowledge about programming or major mathematical concepts. Users can easily compare the graphic fit of several PHDs while estimating their parameters and assess the goodness of fit with just several clicks. All these functionalities are exhibited by means of a numerical simulation and modeling the time to live since the diagnostic in primary breast cancer patients.

Keywords: breast cancer; interactive app; lifetime; modelling; phase-type distributions; shiny.

MeSH terms

  • Breast Neoplasms*
  • Computer Simulation
  • Female
  • Humans
  • Markov Chains
  • Mobile Applications*
  • Probability
  • Software