powered by
Calculate the sample size for each arm in a two-arm trial
sample_size(kappa, mA, hr, ta, tf, diff, P)
the shape parameter of weibull distribution
the median survival time of arm A
the hazard ratio of arm B to arm A
the accrual duration
the follow-up duration
the equivalence margin
the chance of correctly selecting the superior arm
sample_size() returns required sample size for each arm
sample_size()
Jianrong Wu, Haitao Pan, Chia-Wei Hsu (2021). "Two-Stage Screened Selection Designs for Randomized Phase II Trials with Time-to-Event Endpoints." Submitted
# NOT RUN { sample_size(kappa = 1, mA = 2.4, hr = 0.60, ta = 24, tf = 3, diff = 0.25, P = 0.9) # }
Run the code above in your browser using DataLab