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
trial_data_simulation(simdata,accrual,eventtarget=NULL,maxlpfollowup=NULL)
A data frame contains simulated survival time and censor status.
Simulated accrual time.
Target number of events of the trial
The maximum follow up time for the last enrolled patient.