survival (was Re: [R] heap memory exhausted)

Thomas Lumley thomas at
Sat Nov 28 20:09:58 CET 1998

On Fri, 27 Nov 1998, Alvaro A. Novo wrote:

> Hi,
> I need to perform survival analysis and could not find the S+ functions:
> - survfit (fits a Kaplan-Meier survival curve), or
> - coxph (fits a Cox proportional hazards model)

These are in the separate survival4 library, available from the
Comprehensive R Archive Network. They are not built in to R because their
license is somewhat different from the GPL and because they would take up
a lot of space

You need to install survival4 and then load it with 
 R>  library(survival4)
if you  need survival analysis.

You might well also want to get the splines library (which is needed by
plot.cox.zph), the ratetables library (which contains the US mortality
rate tables used by survexp) and the date library (which contains date

There will be a new survival5 library fairly soon (Terry Therneau is
releasing it for S in a few weeks, and I expect it will be fairly easy to 

Thomas Lumley
Assistant Professor, Biostatistics
University of Washington, Seattle.

r-help mailing list -- Read
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at

More information about the R-help mailing list