KMplot
Plot the Kaplan-Meier estimation of the survival function
Survival times are data that measure follow-up time from a defined starting point to the occurrence of a given event, for example the time from the beginning to the end of a remission period or the time from the diagnosis of a disease to death. Standard statistical techniques cannot usually be applied because the underlying distribution is rarely Normal and the data are often "censored". A survival time is described as censored when there is a follow-up time but the event has not yet occurred or is not known to have occurred. For example, if remission time is being studied and the patient is still in remission at the end of the study, then that patient's remission time would be censored. If a patient for some reason drops out of a study before the end of the study period, then that patient's follow-up time would also be considered to be censored. The survival function S(t) is defined as the probability of surviving at least to time t. The graph of S(t) against t is called the survival curve. The Kaplan-Meier method can be used to estimate this curve from the observed survival times without the assumption of an underlying probability distribution.
Created by Giuseppe Cardillo
giuseppe.cardillo-edta@poste.it
To cite this file, this would be an appropriate format:Curve Cardillo G. (2008). KMPLOT: Kaplan-Meier estimation of the survival function. http://www.mathworks.com/matlabcentral/fileexchange/22293
Cite As
Giuseppe Cardillo (2024). KMplot (https://github.com/dnafinder/kmplot), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: MatSurv
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Versions that use the GitHub default branch cannot be downloaded
Version | Published | Release Notes | |
---|---|---|---|
2.0.0.0 | inputparser; github link |
|
|
1.8.0.0 | fixed a bug into "input error handling" section |
||
1.7.0.0 | function for hazard rate computation was changed to avoid NaN in non linear fit.
|
||
1.6.0.0 | Hazard rate computation added |
||
1.5.0.0 | Changes in description |
||
1.4.0.0 | improvement for censored data |
||
1.3.0.0 | error correction in confidence curve trimming |
||
1.2.0.0 | The function was adapted to be recalled by LOGRANK function (a function of mine). More vectorization. |
||
1.1.0.0 | help section change to correctly cite this file; median time computation was changed (in some cases there is not median time) |
||
1.0.0.0 |