Given a data frame with one row per subject containing event times and a data frame containing time points at which a time-dependent covariate changes its value, returns the unique time at which either event occurs or a time-dependent covariate changes its value.
1 | combine_cut(event_df, tdc_df, time_var, status_var, cens_value = 0)
|
event_df |
A data frame (potentially) containing time-dependent covariates. |
tdc_df |
A data frame containing information on time-dependent variables
in long format. Needs to contain a "time" variable indicating when the
TDCs change their value. Must have same name as variable indicating event
times in |
time_var |
A character, specifies the column of the event or
censoring time in |
status_var |
As |
cens_value |
The value that indicates censoring in the
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.