Skip to content

plot.survfit

2 messages · Fredrik Lundgren, Thomas Lumley

#
Hello,

How do I get plot.survfit to draw a survival curve with prespecified time periods, say 1 month, 2, months, 3 months, 6 months, 1 year, 2 years etc) instead of the individual times of all events?

Sincerely Fredrik Lundgren
#
On Tue, 23 Dec 2003, Fredrik Lundgren wrote:

            
Why would you want to do that?

If you have only one survival curve you can create a function that
describes it

survfun<-approxfun(fit$time,fit$surv,yleft=1,f=0,method="constant")

and then evaluate and plot this function whereever you want.

	-thomas