Survival Analysis in R for Public Health (Coursera)

Survival Analysis in R for Public Health (Coursera)

The three earlier courses in this series covered statistical thinking, correlation, linear regression and logistic regression. This one will show you how to run survival – or “time to event” – analysis, explaining what’s meant by familiar-sounding but deceptive terms like hazard and censoring, which have specific meanings in this context. Using the popular and completely free software R, you’ll learn how to take a data set from scratch, import it into R, run essential descriptive analyses to get to know the data’s features and quirks, and progress from Kaplan-Meier plots through to multiple Cox regression.

Class Deals by MOOC List - Click here and see Coursera's Active Discounts, Deals, and Promo Codes.

You’ll use data simulated from real, messy patient-level data for patients admitted to hospital with heart failure and learn how to explore which factors predict their subsequent mortality. You’ll learn how to test model assumptions and fit to the data and some simple tricks to get round common problems that real public health data have. There will be mini-quizzes on the videos and the R exercises with feedback along the way to check your understanding.
Course 4 of 4 in the Statistical Analysis with R for Public Health Specialization.

Prerequisites
Some formulae are given to aid understanding, but this is not one of those courses where you need a mathematics degree to follow it. You will need basic numeracy (for example, we will not use calculus) and familiarity with graphical and tabular ways of presenting results. The three previous courses in the series explained concepts such as hypothesis testing, p values, confidence intervals, correlation and regression and showed how to install R and run basic commands. In this course, we will recap all these core ideas in brief, but if you are unfamiliar with them, then you may prefer to take the first course in particular, Statistical Thinking in Public Health, and perhaps also the second, on linear regression, before embarking on this one.

What You Will Learn

  • Run Kaplan-Meier plots and Cox regression in R and interpret the output
  • Describe a data set from scratch, using descriptive statistics and simple graphical methods as a necessary first step for more advanced analysis
  • Describe and compare some common ways to choose a multiple regression model

Syllabus

WEEK 1
The Kaplan-Meier Plot
What is survival analysis? You’ll see what it is, when to use it and how to run and interpret the most common descriptive survival analysis method, the Kaplan-Meier plot and its associated log-rank test for comparing the survival of two or more patient groups, e.g. those on different treatments. You’ll learn about the key concept of censoring.

WEEK 2
The Cox Model
This week you’ll get to know the most commonly used survival analysis method for incorporating not just one but multiple predictors of survival: Cox proportional hazards regression modelling. You’ll learn about the key concepts of hazards and the risk set. From now and until the end of this course, there’ll be plenty of chance to run Cox models on data simulated from real patient-level records for people admitted to hospital with heart failure. You’ll see why missing data and categorical variables can cause problems in regression models such as Cox.

WEEK 3
The Multiple Cox Model
You’ll extend the simple Cox model to the multiple Cox model. As preparation, you’ll run the essential descriptive statistics on your main variables. Then you’ll see what can happen with real-life public health data and learn some simple tricks to fix the problem.

WEEK 4
The Proportionality Assumption
In this final part of the course, you’ll learn how to assess the fit of the model and test the validity of the main assumptions involved in Cox regression such as proportional hazards. This will cover three types of residuals. Lastly, you’ll get to practise fitting a multiple Cox regression model and will have to decide which predictors to include and which to drop, a ubiquitous challenge for people fitting any type of regression model.

Go to Class
MOOC List is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Related Courses

Epidemics (Coursera) Coursera
University of Hong Kong

Epidemics (Coursera)

“If history is our guide, we can assume that the battle between the intellect and will of the human species and the extraordinary adaptability of microbes will be never-ending.” Despite all the remarkable technological breakthroughs that we have made over the past few decades, the threat from infectious diseases has significantly accelerated. In this course, we will learn why this is the case by looking at the fundamental scientific principles underlying epidemics and the public health actions behind their prevention and control in the 21st century.

Dec 7th 2026
5-12 Weeks
Matrix Methods (Coursera) Coursera
University of Minnesota

Matrix Methods (Coursera)

Mathematical Matrix Methods lie at the root of most methods of machine learning and data analysis of tabular data. Learn the basics of Matrix Methods, including matrix-matrix multiplication, solving linear equations, orthogonality, and best least squares approximation. Discover the Singular Value Decomposition that plays a fundamental role in dimensionality reduction, Principal Component Analysis, and noise reduction.

Dec 7th 2026
5-12 Weeks
Fundamentos de Excel para Negocios (Coursera) Coursera
Universidad Austral

Fundamentos de Excel para Negocios (Coursera)

Cuando finalices este curso habrás logrado un gran número de habilidades como introducir información, ordenarla, manipularla, realizar cálculos de diversa índole (matemáticos, trigonométricos, estadísticos, financieros, ingenieriles, probabilísticos), extraer conclusiones, trabajar con fechas y horas, construir gráficos, imprimir reportes y muchas más.

Dec 7th 2026
5-12 Weeks
Big Data Analysis with Scala and Spark (Coursera) Coursera
École Polytechnique Fédérale de Lausanne

Big Data Analysis with Scala and Spark (Coursera)

Manipulating big data distributed over a cluster using functional concepts is rampant in industry, and is arguably one of the first widespread industrial uses of functional ideas. This is evidenced by the popularity of MapReduce and Hadoop, and most recently Apache Spark, a fast, in-memory distributed collections framework written in Scala. In this course, we'll see how the data parallel paradigm can be extended to the distributed case, using Spark throughout.

Dec 7th 2026
4 Weeks
Experimentation for Improvement (Coursera) Coursera
McMaster University

Experimentation for Improvement (Coursera)

We are always using experiments to improve our lives, our community, and our work. Are you doing it efficiently? Or are you (incorrectly) changing one thing at a time and hoping for the best? In this course, you will learn how to plan efficient experiments - testing with many variables. Our goal is to find the best results using only a few experiments. A key part of the course is how to optimize a system.

Dec 7th 2026
5-12 Weeks
Tobacco Control: Agile Policy, Research and Practice (Coursera) Coursera
Imperial College London

Tobacco Control: Agile Policy, Research and Practice (Coursera)

This course teaches you about the global health harms caused by tobacco and the efforts underway to combat these. You'll analyse the strategies and tactics used by the tobacco industry, and their allies, to keep people buying their products, and you'll reflect on the role played by public health research in pushing back against this pressure with the ultimate aim of improving health.

Dec 7th 2026
3 Weeks
Point of Care Testing for Sexually Transmitted Infections (Coursera) Coursera
Johns Hopkins University

Point of Care Testing for Sexually Transmitted Infections (Coursera)

What are sexually transmitted infections (STIs), and why do we care? What is point of care testing (POCT)? What do clinicians and patients want and need from the POCT for STIs? Point of care testing, or medical diagnostic testing done at the time of patient care, is an important tool for the treatment of sexually transmitted infections. This course looks at point of care testing for sexually transmitted infections from the perspective of the clinician, the patient, and the regulatory environment.

Dec 7th 2026
4 Weeks
Disease Screening in Public Health (Coursera) Coursera
University of Geneva

Disease Screening in Public Health (Coursera)

Current and future public health is characterized by the increase of chronic and degenerative diseases, corresponding to the worldwide ageing of the population. The increasing prevalence of these conditions together with the long incubation period of the chronic diseases and the restless technological innovations, offer new opportunities to develop strategies for early diagnosis.

Dec 7th 2026
5-12 Weeks
Diagnóstico y tratamiento del dolor neuropático en atención primaria (Coursera) Coursera
Universidad de los Andes

Diagnóstico y tratamiento del dolor neuropático en atención primaria (Coursera)

Este curso busca fortalecer las habilidades diagnósticas de los profesionales de la salud frente al dolor neuropático y su adecuado tratamiento. El curso se divide en cuatro módulos, en cada uno podrás conocer el testimonio y el examen físico de una paciente real, con el fin de identificar de su propia experiencia lo que significa esta condición. En el primer módulo, dividido en dos lecciones, se presenta una perspectiva general sobre la definición y características, diagnóstico y tratamiento del dolor neuropático.

Dec 7th 2026
4 Weeks
Structural Equation Model and its Applications | 结构方程模型及其应用 (普通话) (Coursera) Coursera
The Chinese University of Hong Kong

Structural Equation Model and its Applications | 结构方程模型及其应用 (普通话) (Coursera)

在社会学、心理学、教育学、经济学、管理学、市场学等研究领域的数据分析中,结构方程建模是当前最前沿的统计方法中应用最广、研究最多的一个。它包含了方差分析、回归分析、路径分析和因子分析,弥补了传统回归分析和因子分析的不足,可以分析多因多果的联系、潜变量的关系,

Dec 7th 2026
5-12 Weeks