tof_compute_km_curve | R Documentation |
Compute a Kaplan-Meier curve from sample-level survival data
tof_compute_km_curve(survival_curves)
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". |
A tibble with 3 columns: time_to_event, survival_probability, and is_censored (whether or not an event was censored at that timepoint).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.