Introduction

Survival analysis is also known as duration analysis, transition analysis, failure time analysis, and time-to-event analysis. In survival analysis, subjects are tracked until an event happens or we lose them from the sample. Events can be anything, such as death, marriage, divorce, and so on. Subjects are followed for a specific time and the focus is on the time the event occurs. The three terms used commonly while talking about survival analysis are birth event, death event, and censorship. A birth event is the time when the observation started, a death event is the time at the end of the event or study, and censorship means a death event will not always occur. Censoring occurs because the subject does not experience the event ...

Get Machine Learning with R Cookbook - Second Edition 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.