Kaplan-Meier estimate of a survival function
Kaplan-Meier estimate of a survival function.
km(ti, di)
ti |
A numerical vector with the survival times. |
di |
A numerical vector indicating the censorings. 0 = censored, 1 = not censored. |
The Kaplan-Meier estimate of the survival function takes place.
A matrix with 4 columns. The non censored times, the number of subjects at risk, the number of events at each time and the estimated survival
Michail Tsagris
R implementation and documentation: Michail Tsagris <mtsagris@uoc.gr>
Kaplan E. L. and Meier P. (1958). Nonparametric estimation from incomplete observations. Journal of the American Statistical Association, 53(282): 457-481.
y <- rgamma(40, 10, 1) di <- rbinom(40, 1, 0.6) a <- km(y, di)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.