split_data {pammtools} | R Documentation |
Function to transform data without time-dependent covariates into piece-wise exponential data format
split_data(formula, data, cut = NULL, max_time = NULL, ...)
formula |
A two sided formula with a |
data |
Either an object inheriting from data frame or in case of time-dependent covariates a list of data frames (of length 2), where the first data frame contains the time-to-event information and static covariates while the second (and potentially further data frames) contain information on time-dependent covariates and the times at which they have been observed. |
cut |
Split points, used to partition the follow up into intervals. If unspecified, all unique event times will be used. |
max_time |
If |
... |
Further arguments passed to the |