[R] survival package - calculating probability to survive a given time
Terry Therneau
therneau at mayo.edu
Mon Dec 13 19:52:21 CET 2010
- ------- included message --------
i try to calculate the probabilty to survive a given time by using the
estimated survival curve by kaplan meier.
What is the right way to do that? as far as is see i cannot use the
predict-methods from the survival package?
---- end inclusion --------
The survfit function directly estimates the probability you want, no
predict method is needed. It is similar to quantile(x, 1:9/10), in that
you would not use predict on that either.
As to getting the value at a specific time, use
summary(fit, time=20)
This correctly interpolates the step function when "20" is exactly one
of the event times.
Terry Therneau
More information about the R-help
mailing list