Article view

MatSurv: Survival analysis and visualization in MATLAB

By Jordan H. Creed, Travis A. Gerke, Anders Berglund

Article information

Publication
Published 13 February 2020
Institutions at publication
Moffitt Cancer Center
62 Citations OpenAlex, 4 December 2026 FULL LIST: Citations
Countries with citations No data yet
Usage Phase 3: not collected yet

Abstract

Survival analysis is a set of methods for evaluating time-to-event data that is widely applied across research disciplines. For example, it is commonly used in clinical trials to compare the effect of treatments. In cancer biology, it can be used to understand how low-or highexpression of genes affect the aggressiveness of the tumor. Time-to-event data frequently include censored data points, samples where no event was observed. An event is, for example, death, relapse of disease, or a new metastatic tumor. If none of these events occur during the study period, the time to-to-event is unknown, we only know that no events were observed during the study time. The methods described below were developed for this kind of data. For an in-depth introduction to survival analysis, we can recommend the book by Kleinbaum and David (Kleinbaum, 1998). In fact, much of the code used in MatSurv is based on the equations given in the book. Commonly reported elements of survival analysis include log-rank tests, hazard ratios (HR) and Kaplan-Meier (KM) curves.KM-curves are used to compare survival durations between two or more groups and give users a particular estimate of survival probability at a given time; log-rank tests are used to conduct statistical inference on survival durations between groups; and HRs provide a ratio of the hazard rates between groups. To further improve the KM-plot, it has been suggested that the KM-plot should always be accomplished by a table that describes the number of patients that are still "at-risk" at a specific timepoint (Morris et al., 2019).MATLAB (MATLAB, 2019) currently lacks functions to easily create KM-plots with accompanying risk tables. Furthermore, MATLAB does not have a built-in log-rank test, nor is one available in any of the existing toolboxes, including the Statistics and Machine Learning Toolbox. The Statistics and Machine Learning Toolbox support Cox proportional hazards regression using the coxphfit function and KM-plots can be created using the plot or stairs functions. Our goal for MatSurv is to provide an easy-to-use tool that creates publication quality KM-plots with corresponding risk tables. The statistical procedures built into MatSurv can be used to compare two or multiple groups. In addition, MatSurv allows the user to easily modify the appearance of the created figure. The graphics were inspired by the survminer R-package (Kassambara, 2018).

Citations per year

Citations per year
YearCitations
2020 0
2021 13
2022 10
2023 12
2024 12
2025 10
2026 5

OpenAlex counts citations by year for the last ten years only, so the total and the list of citing works can include earlier ones.

Works citing this article

OpenAlex counts 62 citations, but the citing work are not listed here yet: citing works are collected from OpenAlex a few at a time, and it lists most, not all, of the citations it counts.

Where its authors are based

Countries of the institutions the article's authors were affiliated to when it was published.

  • AUTHORS
  • CITATIONS No data yet
  • USAGE Phase 3
Authors by country
CountryAuthors
United States3