Skip to main content
HomeR

Course

Survival Analysis in R

IntermediateSkill Level
4.7+
175 reviews
Updated 06/2022
Learn to work with time-to-event data. The event may be death or finding a job after unemployment. Learn to estimate, visualize, and interpret survival models!
Start Course for Free
RProbability & Statistics4 hr14 videos50 Exercises3,650 XP13,857Statement of Accomplishment

Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.

Loved by learners at thousands of companies

Group

Training 2 or more people?

Try DataCamp for Business

Course Description

Do patients taking the new drug survive longer than others? How fast do people get a new job after getting unemployed? What can I do to make my friends stay on the dancefloor at my party? All these questions require the analysis of time-to-event data, for which we use special statistical methods. This course introduces basic concepts of time-to-event data analysis, also called survival analysis. Learn how to deal with time-to-event data and how to compute, visualize and interpret survivor curves as well as Weibull and Cox models.

Prerequisites

Introduction to Regression in R
1

What is Survival Analysis?

In the first chapter, we introduce the concept of survival analysis, explain the importance of this topic, and provide a quick introduction to the theory behind survival curves. We discuss why special methods are needed when dealing with time-to-event data and introduce the concept of censoring. We also discuss how we describe the distribution of the elapsed time until an event.
Start Chapter
2

Estimation of survival curves

3

The Weibull model

4

The Cox Model

Survival Analysis in R
Course
Complete

Earn Statement of Accomplishment

Add this credential to your LinkedIn profile, resume, or CV
Share it on social media and in your performance review
Enroll Now

Don’t just take our word for it

*4.7
from 175 reviews
78%
21%
1%
0%
0%
  • alexandrina
    3 days ago

  • Adam
    3 days ago

  • Andy
    4 days ago

  • Tailynn
    2 weeks ago

  • George
    3 weeks ago

  • Fanghui
    3 weeks ago

alexandrina

Adam

Andy

FAQs

What statistical models does this course teach for survival analysis?

You learn Kaplan-Meier estimation for survival curves, Weibull models for parametric analysis with covariates, and Cox proportional hazards models for semi-parametric analysis.

What is censoring and does this course explain it?

Censoring occurs when you only know that an event has not yet happened by the end of observation. Chapter 1 introduces censoring and why standard methods cannot handle it.

What kinds of questions can survival analysis answer?

It answers time-to-event questions, such as whether patients on a new drug survive longer, how quickly people find jobs after unemployment, or how long customers stay subscribed.

How does the Cox model differ from the Weibull model?

The Cox model does not assume a specific distribution for survival times, making it more flexible. The final chapter explains when to prefer Cox over Weibull and how to interpret its output.

What R packages and prerequisites do I need?

You need dplyr, ggplot2, tidyverse, and regression experience in R. Seven prerequisite courses are listed covering these tools and introductory statistics.

Join over 19 million learners and start Survival Analysis in R today!

Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.

Grow your data skills with DataCamp for Mobile

Make progress on the go with our mobile courses and daily 5-minute coding challenges.