powered by
Quickly inspect the survival data to ensure it is in the correct format.
inspect_surv_data(data, time, event, group = NULL)
A list containing tibbles that summarise the first few rows of the survival data, the sample sizes, the events, and median survival.
A data frame containing the survival data.
The column name in data containing the time-to-event data.
data
The column name in data containing the event indicator data.
Optional. The column name in data containing the group indicator data.
inspect_surv_data( data = easysurv::easy_bc, time = "recyrs", event = "censrec", group = "group" )
Run the code above in your browser using DataLab