Skip to contents

Compute a Kaplan-Meier curve from sample-level survival data

Usage

tof_compute_km_curve(survival_curves)

Arguments

survival_curves

A tibble from which the Kaplan-Meier curve will be computed. Each row must represent an observation and must have two columns named "time_to_event" and "event".

Value

A tibble with 3 columns: time_to_event, survival_probability, and is_censored (whether or not an event was censored at that timepoint).