Code for KM.R (1.33 kB)
Download fileThe analysis of survival data using Kaplan Meier method
Survival analysis using the Kaplan-Meier method. An example of the principles of the Kaplan-Meier method in RStudio using the "Survival" library. Survival plots, median survival time, using built-in R datasets. RStudio was used for coding. For references: https://ascopubs.org/doi/10.1200/jco.1994.12.3.601, and https://www.rdocumentation.org/packages/survival/versions/3.2-13/topics/lung.