# Chapter 7 Survival Analysis

In this chapter, you will learn how to:

• Identify a time-to-event outcome;
• Identify types and mechanisms of censoring;
• Interpret the survival and hazard functions;
• Use the Kaplan-Meier method to estimate the survival function;
• Use the log-rank test to compare survival between groups;
• Visualize the Kaplan-Meier estimate of the survival function;
• Visualize the estimated hazard function;
• Fit a Cox proportional hazards regression model, including the following:
• Write and interpret the Cox regression equation;
To use the code in this chapter, first load tidyverse.
library(tidyverse)