This lesson is in the early stages of development (Alpha version)

R for Survival Analysis

An introduction to survival analysis in R using Game of Thrones mortality dataset.

The goal of this lesson is to practice the common methods for data manipulation and visualisation. These materials are based on the mortality dataset of the Games of Thrones television series, which was published in Injury Epidemiology.

Note that this lesson will focus on teaching the best practices using base R and ggplot2 and dplyr packages. Methods for statistical analysis here are not taught in depth. This lesson should preferably be given at the end of a two-day introductory R workshop (e.g. R for Reproducible Scientific Analysis or Programming with R).


Familiarity with the ggplot2 and dplyr packages and base R functions for data frame manipulations and plotting.


Setup Download files required for the lesson
00:00 1. Mortality and survival in Game of Thrones How can I import data into R?
How can I check the quality of the data?
How can I summarise my data through graphics?
How can I perform survival analysis?
02:30 Finish

The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.