get_event_types | R Documentation |
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
).
get_event_types(data, formula, censor_code)
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.