Description Usage Arguments Value Author(s) Examples
data_sim function simulates data from a hypothetic 1:1 two-arms clinical trial, with one year uniform accrual period and three years follow-up.
data_sim2 function simplifies data list generated from above function to a more events only case. Note this function is only used for demonstration purpose.
1 2 |
n |
Total number of subject. |
true_hr |
True hazard ratio between trt and control. |
haz_c |
True event rate in the control arm. |
data_list |
The data list which has been transformed from the long format by uc_data_transform function. |
covariates |
The covariate we pose the true HR. |
percentage |
The percentage of censored subjects with potential events we would like to ultilize in the analysis. Ideally, with more potential events added, more power gain of imputation. |
Dataframe. Simulated datasets with event probabilities and potential event date.
Yiming Chen, John Lawrence
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.