Trial projection given current snapshot dataset.
projection(snapshot_data, enroll_continue=FALSE, samplesize=0, rand_ratio=c(1,1),
blocksize=1,accrual_interval=NULL, accrual_rate=NULL, lambda=NULL,
trtHR=NULL, dropoutrate=NULL,eventtarget=0,maxlpfollowup=NULL)
Snapshot dataset in data frame. Data frame must include column "time","status" and "accrual". Optional column "onstudy" is indicator of patients are still on study.
randomization ratio: control vs treatment
Indicate whether trial is still enrolling new patients. Default is FALSE. if TRUE, user needs provide "samplesize", "rand_ratio","blocksize", "accrual_interval","accrual_rate".
Total sample size of the trial. only needed if "enroll_continue=TRUE"
Randomization blocksize, only needed if "enroll_continue=TRUE"
accrual time windows. only needed if "enroll_continue=TRUE"
accrual rate for each time window. only needed if "enroll_continue=TRUE"
Baseline hazard function parameter for exponential distribution
hazard ratio between treatment and control
Dropout rate
Total target event number
Maximum followup time for last enrolled patient