View source: R/utility_functions.R
Simulate clinical trial by adding accrual time to the simulated survival data. And cut the trial at the target event time or at the maximum follow up time
1 | trial_data_simulation(simdata,accrual,eventtarget=NULL,maxlpfollowup=NULL)
|
simdata |
A data frame contains simulated survival time and censor status. |
accrual |
Simulated accrual time. |
eventtarget |
Target number of events of the trial |
maxlpfollowup |
The maximum follow up time for the last enrolled patient. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.