Skip to content

plot for "survreg" and "intcox" (rewritten)

1 message · Terry Therneau

#
I missed this question.

1. For survreg.
   help("predict.survreg") shows an example of drawing a survival curve

Adding a survfit method has been on my list for a long time, since it would make this 
information easier to find.


2. intcox.  I had not been familiar with this function.  Even though the authors have 
decided to label the result with a "coxph" class, presumably so the coxph print function 
will work, almost none of the coxph methods will work on the result.
   However, reading their manual page it seems that the hazard and its time points are 
returned as a part of the result.  I tried running an example to see if the result is a 
hazard or a cumulative hazard but the run failed and it's time to run to a meeting. 
Assume it is cumulative hazard.  Then exp(-fit$lambda0) will give the baseline survival curve.

Terry T
On 08/27/2014 02:47 PM, David Winsemius wrote: