trial_data_simulation {TwoArmSurvSim} | R Documentation |
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)
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. |