cut_data_by_event: Cut a dataset for analysis at a specified event count
Description
Takes a time-to-event data set and cuts the data at which an
event count is reached.
Usage
cut_data_by_event(x, event)
Value
A data frame ready for survival analysis, including columns time to
event (tte), event, the stratum, and the treatment. The class of
the data frame is tte_data, and the attribute ratio generated by
sim_pw_surv() is also attached.
Arguments
x
A time-to-event dataset, for example, generated by sim_pw_surv().