MatSurv is a simple survival analysis function for MATLAB (version 2016b and later) that creates a KM-plot with risk table. Survival statistics, such as log rank p-value and Hazard Ration (HR) is also calculated. The log rank test has been tested to give the same results as SAS and R. The style of the KM-plot is easily changed with input parameters. No additional toolboxes are needed. MatSurv was inspired by the survminer R-package (https://github.com/kassambara/survminer).
More examples can be found at: https://github.com/aebergl/MatSurv
Creed, Jordan, et al. “MatSurv: Survival Analysis and Visualization in MATLAB.” Journal of Open Source Software, vol. 5, no. 46, The Open Journal, Feb. 2020, p. 1830, doi:10.21105/joss.01830.
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!