Description Usage Arguments Examples
Given to data frames, one containing event time information (one row per subject) and one containing information on time-dependent covariates, creates piece-wise exponential data (with one split per event time and time at which a TDC changes its value).
1 2 |
formula |
a model formula |
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 |
id_var |
The ID variable name, identifying subjects. Needs to be the same name in both data sets. |
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
|
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.