Description Usage Arguments Author(s) References Examples
This function provides survival estimates using the product-limit Kaplan-Meier estimator.
1 |
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. |
Gustavo Soutinho and Luis Meira-Machado
E. Kaplan and P. Meier. Nonparametric estimation from incomplete observations. Journal of the American Statistical Association, 53:457-481, 1958.
1 2 3 4 5 6 7 8 | require(survival)
data("bladder4state")
obj<- multidf(time1=bladder4state$y1, event1=bladder4state$d1,
time=bladder4state$y1+bladder4state$y2,status=bladder4state$d2)
obj2<-obj[[1]]
KM(time = obj2$time, status = obj2$status, t = 20)
fit <- survfit(Surv(obj2$time, obj2$status) ~ 1, data = obj2)
summary(fit, time = 20)$surv
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.