sim_trial() returns the nominal type I error rate and calibrated cutoff
points, nominal power under user-defined hypothesis, empirical power under
user-defined number of simulations, the duration of trial(time), the number
of events (num_evs), the number of patients (num_pts) from different stages.
The function can also display the number of events and patients under the
selected subgroup, the distribution of decision zones and the estimated hazard
ratio for the final analysis.
Arguments
median.c
The median survival time for control group
hr
Alternative hazard ratio
K
Number of biomarkers
L
Information fraction in terms of the accumulative events in phase II stage, e.g., K = c(1/4,1/2,1)
lfu
Follow-up time
alpha
One-sided familywise error rate
power
Power
accrate
Accrual rate
theta
A clinically meaningful treatment effect size defined by clinicians