Description Usage Arguments Value Author(s) References
Formats the data for the method described in Tayob, Murray 2015. This function is for internal use by TM().
1 | format_data_ourmethod(X, delta, Z, t)
|
X |
vector containing observed time to terminating event |
delta |
vector that is 1 if terminating event is observed and 0 if patient is censored |
Z |
array of times to recurrent events. Number of columns corresponds to maximum number of recurrent events observed for a patient |
t |
vector containing start times of follow-up windows chosen |
a list
containing
ID - vector containing numeric identifying numbers for each patient corresponding to row numbers of input data
X_tk - vector containing observed time to combined end-point for each follow-up window
delta_tk - vector containing combined end-point event indicator. 1 if combined-endpoint is observed and 0 if censored
t_k - vector containing start times of corresponding follow-up window
n - number of patients in dataset
Nabihah Tayob
Tayob, N. and Murray, S., 2014. Nonparametric tests of treatment effect based on combined endpoints for mortality and recurrent events. Biostatistics, 16(1), pp.73-83.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.