# [R] Kaplan-Meier function from survfit

Ritwik Sinha ritwik.sinha at gmail.com
Sat Dec 6 04:10:59 CET 2008

Hi All,

Please pardon me if I am missing something obvious here. How do I get
the Kaplan-Meier estimate function that is created by survfit and
plotted by the code.

fit <- survfit(Surv(time, status) , data=aml)
plot(fit)

That is, I need a function that will give me the survival estimate at
a given time: \hat{S}(t).