split_data_multistate | R Documentation |
Currently, the input data must be in start-stop notation for each spell and contain a colum that indicates the spell (event number).
split_data_multistate(
formula,
data,
transition = character(),
cut = NULL,
max_time = NULL,
event = 1L,
min_events = 1L,
timescale = c("gap", "calendar"),
...
)
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. |
transition |
A character indicating the column in data that indicates the event/episode number for recurrent events. |
cut |
Split points, used to partition the follow up into intervals. If unspecified, all unique event times will be used. |
max_time |
If |
event |
The value that encodes the occurrence of an event in the data set. |
min_events |
Minimum number of events for each event number. |
timescale |
Defines the timescale for the recurrent event data transformation.
Defaults to |
... |
Further arguments passed to the |
survSplit
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.