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

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

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

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

Nov 9th 2026
5-12 Weeks
Redes Ecológicas (Coursera) Coursera
Universidade de São Paulo, Brasil

Redes Ecológicas (Coursera)

Todos os seres vivos estão conectados entre si por interações ecológicas, formando a “colina emaranhada” de Darwin, metáfora inspirada pela “teia da vida” de Humboldt. Desemaranhar essa complexidade é uma tarefa desafiadora, mas factível, desde que você use ferramentas adequadas. A ciência de redes nos ajuda com excelentes ferramentas conceituais e operacionais.

Nov 9th 2026
4 Weeks
Infonomics I: Business Information Economics and Data Monetization (Coursera) Coursera
University of Illinois at Urbana-Champaign

Infonomics I: Business Information Economics and Data Monetization (Coursera)

Thriving in the Information Age compels organizations to deploy information as an actual business asset, not as an IT asset or merely as a business byproduct. This demands creativity in conceiving and implementing new ways to generate economic benefits from the wide array of information assets available to an organization. Unfortunately, information too frequently is underappreciated and therefore underutilized.

Nov 9th 2026
4 Weeks
Chemicals and Health (Coursera) Coursera
Johns Hopkins University

Chemicals and Health (Coursera)

This course covers chemicals in our environment and in our bodies and how they impact our health. It addresses policies and practices related to chemicals, particularly related to how they get into our bodies (exposures), what they do when they get there (toxicology), how we measure them (biomonitoring) and their impact on our health. Most examples are drawn from the US.

Nov 9th 2026
5-12 Weeks
Epidemiology: The Basic Science of Public Health (Coursera) Coursera
University of North Carolina

Epidemiology: The Basic Science of Public Health (Coursera)

Often called “the cornerstone” of public health, epidemiology is the study of the distribution and determinants of diseases, health conditions, or events among populations and the application of that study to control health problems. By applying the concepts learned in this course to current public health problems and issues, students will understand the practice of epidemiology as it relates to real life and makes for a better appreciation of public health programs and policies. This course explores public health issues like cardiovascular and infectious diseases – both locally and globally – through the lens of epidemiology.

Nov 9th 2026
5-12 Weeks
Stories of Infection (Coursera) Coursera
Stanford University

Stories of Infection (Coursera)

This course introduces learners to a variety of infectious diseases using a patient-centered, story-based approach. Through illustrated, short videos, learners will follow the course of each patient’s illness, from initial presentation to resolution. Integrating the relevant microbiology, pathophysiology and immunology, this course aims to engage and entice the learner towards future studies in microbiology, immunology and infectious diseases.

Nov 9th 2026
5-12 Weeks
Antibiotic Stewardship (Coursera) Coursera
Stanford University

Antibiotic Stewardship (Coursera)

Antibiotics are among the most frequently prescribed classes of drugs and it is estimated that approximately 50% of antibiotic use, in both the outpatient and inpatient settings, is inappropriate. At the same time, in contrast to any other class of drugs, every antibiotic use has a potential public health consequence – inappropriate use may not harm only the individual patient, but contributes to societal harm by exerting an unnecessary selective pressure that may lead to antibiotic resistance among bacteria. This video based course will introduce learners to the basic principles of appropriate antibiotic use, demonstrate how to apply these principles to the management of common infections, and outline how to develop and maintain an antimicrobial stewardship program.

Nov 9th 2026
4 Weeks
Research Design: Inquiry and Discovery (Coursera) Coursera
University of North Texas

Research Design: Inquiry and Discovery (Coursera)

The main purpose of this course is to focus on good questions and how to answer them. This is essential to making considered decisions as a leader in any organization or in your life overall. Topics will include the basis of human curiosity, development of questions, connections between questions and approaches to information gathering design, variable measurement, sampling, the differences between experimental and non-experimental designs, data analysis, reporting and the ethics of inquiry projects.

Nov 9th 2026
4 Weeks
Earth Economics (Coursera) Coursera
Erasmus University Rotterdam

Earth Economics (Coursera)

After this course you will be an Earth Economist that can provide evidence-based advise on the best global policy. As an Earth Economist you will better understand the behavior and advice of economists, have become a better economist yourself and know where to find Earth's data and how to analyze these world observations. Our planet is too important: we need you to get engaged!

Nov 9th 2026
5-12 Weeks
Drugs, drug use, drug policy and health (Coursera) Coursera
University of Geneva

Drugs, drug use, drug policy and health (Coursera)

This MOOC is the first of its kind, since it addresses critical issues related to drugs from a multidisciplinary, health and human rights-based approach. Throughout the course you will cover a range of questions including what are drugs and why they controlled? What are the benefits and harms of taking drugs? How public health policies can address drug use?

Nov 9th 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.

Nov 9th 2026
4 Weeks