Appendix D

Survival Packages in R

D.1 Introduction

The basic package for survival analysis in R is the survival package (Therneau & Grambsch 2000). It is one of the so-called recommended packages in R, which means that it is automatically installed when R itself is installed. You must, however, load it in a running R environment before you can use it.

There are a few other R packages devoted to survival and event history analysis. Besides eha, more or less the theme of this book, there are timereg and cmprsk. For a detailed explanation of how to use these packages, see their documentations in R.

D.2 eha

The package eha is written and maintained by the author of this book. It has a long history as a stand-alone program (written in FORTRAN, Turbo ...

Get Event History Analysis with R now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.