condSURV (version 2.0.1)

KM: 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.

References

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

See Also

PKM

Examples

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