KM {survivalREC}R Documentation

Kaplan-Meier product-limit estimate of survival

Description

This function provides survival estimates using the product-limit Kaplan-Meier estimator.

Usage

KM(time, status, t)

Arguments

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.

Value

Vector with Kaplan-Meier estimate of survival.

Author(s)

Gustavo Soutinho and Luis Meira-Machado

References

E. Kaplan and P. Meier. Nonparametric estimation from incomplete observations. Journal of the American Statistical Association, 53:457-481, 1958.

Examples

require(survival)
data("bladder4state")

obj<- multidf(gap1=bladder4state$y1, event1=bladder4state$d1, 
              gap2=bladder4state$y2, status=bladder4state$d2, 
              size=bladder4state$size) 
              
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


[Package survivalREC version 1.1 Index]