trial_data_simulation {TwoArmSurvSim} | R Documentation |
Simulate Clinical Trial with Accrual Time and Trial Stop Rules
Description
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
Usage
trial_data_simulation(simdata,accrual,eventtarget=NULL,maxlpfollowup=NULL)
Arguments
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. |
[Package TwoArmSurvSim version 0.2 Index]