inspect_surv_data {easysurv} | R Documentation |
Inspect Survival Data
Description
Quickly inspect the survival data to ensure it is in the correct format.
Usage
inspect_surv_data(data, time, event, group = NULL)
Arguments
data |
A data frame containing the survival data. |
time |
The column name in |
event |
The column name in |
group |
Optional. The column name in |
Value
A list containing tibbles that summarise the first few rows of the survival data, the sample sizes, the events, and median survival.
Examples
inspect_surv_data(
data = easysurv::easy_bc,
time = "recyrs",
event = "censrec",
group = "group"
)
[Package easysurv version 2.0.1 Index]