27. Survival Analysis

  1. Michael J. Crawley

Published Online: 6 NOV 2012

DOI: 10.1002/9781118448908.ch27

The R Book, Second Edition

The R Book, Second Edition

How to Cite

Crawley, M. J. (2012) Survival Analysis, in The R Book, Second Edition, John Wiley & Sons, Ltd, Chichester, UK. doi: 10.1002/9781118448908.ch27

Author Information

  1. Imperial College London at Silwood Park, UK

Publication History

  1. Published Online: 6 NOV 2012
  2. Published Print: 7 DEC 2012

ISBN Information

Print ISBN: 9780470973929

Online ISBN: 9781118448908



  • survival analysis;
  • Monte Carlo experiment;
  • the survivor function, density/hazard function;
  • exponential distribution, density/survivor function;
  • Kaplan–Meier survival distributions;
  • age-specific hazard models;
  • survival analysis in R, Cox proportional hazards model;
  • Cox's proportional hazards;
  • models and censoring, parametric models;
  • coxph/survreg survival analysis comparison


This chapter contains sections titled:

  • A Monte Carlo experiment

  • Background

  • The survivor function

  • The density function

  • The hazard function

  • The exponential distribution

  • Kaplan-Meier survival distributions

  • Age-specific hazard models

  • Survival analysis in R

  • Parametric analysis

  • Cox's proportional hazards

  • Models with censoring