powered by
margin=lamda1-lamda2, the true difference of hazard rates between control group lamda1 and a test drug group lamda2
H0: |margin| >= delta
Ha: |margin| < delta
This test is whether the test drug is equivalent to the control in average if the null hypothesis is rejected at significant level alpha
TwoSampleSurvival.Equivalence(alpha, beta, lam1, lam2, k, ttotal, taccrual, gamma, margin)
significance level
power = 1-beta
the hazard rates of control group
the hazard rates of a test drug
k=n1/n2 sample size ratio
Total trial time
accrual time period
parameter for exponential distribution. Assume Uniform patient entry if gamma =0
Chow SC, Shao J, Wang H. Sample Size Calculation in Clinical Research. New York: Marcel Dekker, 2003
# NOT RUN { Example.7.2.4<-TwoSampleSurvival.Equivalence(0.05,0.2,1,1,1,3,1,0.00001,0.5) Example.7.2.4 # }
Run the code above in your browser using DataLab