KM | R Documentation |
This function provides survival estimates using the product-limit Kaplan-Meier estimator.
KM(time, status, t)
time |
Survival time of the process. |
status |
Censoring indicator of the survival time of the process; 0 if the survival time is censored and 1 otherwise. |
t |
The time for obtaining survival estimates. |
Luis Meira-Machado and Marta Sestelo
E. Kaplan and P. Meier. Nonparametric estimation from incomplete observations. Journal of the American Statistical Association, 53:457-481, 1958.
PKM
require(survival) obj <- with(colonCS, survCS(time1, event1, Stime, event)) KM(time = obj$Stime, status = obj$event, t = 1095) fit <- survfit(Surv(obj$Stime, obj$event) ~ 1, data = obj) summary(fit, time = 1095)$surv
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.