get_event_types {pammtools} | R Documentation |
Exctract event types
Description
Given a formula that specifies the status variable of the outcome, this function
extracts the different event types (except for censoring, specified by
censor_code
).
Usage
get_event_types(data, formula, censor_code)
Arguments
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. |
formula |
A two sided formula with a |
censor_code |
Specifies the value of the status variable that indicates censoring.
Often this will be |