View source: R/utility_functions.R
Trial projection given current snapshot dataset.
1 2 3 4 |
snapshot_data |
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. |
rand_ratio |
randomization ratio: control vs treatment |
enroll_continue |
Indicate whether trial is still enrolling new patients. Default is FALSE. if TRUE, user needs provide "samplesize", "rand_ratio","blocksize", "accrual_interval","accrual_rate". |
samplesize |
Total sample size of the trial. only needed if "enroll_continue=TRUE" |
blocksize |
Randomization blocksize, only needed if "enroll_continue=TRUE" |
accrual_interval |
accrual time windows. only needed if "enroll_continue=TRUE" |
accrual_rate |
accrual rate for each time window. only needed if "enroll_continue=TRUE" |
lambda |
Baseline hazard function parameter for exponential distribution |
trtHR |
hazard ratio between treatment and control |
dropoutrate |
Dropout rate |
eventtarget |
Total target event number |
maxlpfollowup |
Maximum followup time for last enrolled patient |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.