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

tof_compute_km_curveR Documentation

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

Description

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).


keyes-timothy/tidytof documentation built on Aug. 28, 2024, 8:37 a.m.