Skip to Main Content

Introduction to Survival Analysis in R

Welcome to the Introduction to Survival Analysis in R workshop!

Requirements

Before beginning the seminar, please make sure you have R and RStudio installed.

Please also make sure to have the following R packages installed, and if not, run these commands in R (RStudio).

install.packages("survival", dependencies=TRUE)

install.packages("survminer", dependencies=TRUE)

install.packages("broom", dependencies=TRUE)

Workshop

Introduction to Survival Analysis in R workshop slides: Left-click the link to open the presentation directly. To download with all images, open the presentation (by left-clicking), then right-click in the presentation, select “Save As”, and then make sure you save as type “Webpage, Complete” (Note: this will download the webpage and a folder of images and style files).

Use any web browser (Chrome, Firefox, etc.) to view the seminar. Once it is open, use the following keys to alter the display:

Introduction to Survival Analysis in R webpage: Same material as slides above, but expanded with more text explanations.

Code file containing all R code used in workshop, including solutions to exercises.  Right-click to download, or left-click and copy-and-paste into your RStudio editor.