KM: Kaplan-Meier product-limit estimate of survival

Description Usage Arguments Author(s) References See Also Examples

View source: R/KM.R

Description

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

Usage

1
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.

Author(s)

Luis Meira-Machado, Marta Sestelo and Gustavo Soutinho.

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

1
2
3
4
5
6
require(survival)
obj <- with(colonIDM, survIDM(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

survidm documentation built on June 25, 2021, 1:07 a.m.