powered by
b is the log hazard ratio for treatment, delta is the margin
Ho: |b| \( \ge \delta \)
Ha: |b| < \(\delta\)
Cox.Equivalence(alpha, beta, loghr, p1, d, delta)
significance level
power = 1-beta
log hazard ratio=log(lamda2/lamda1)=b
the proportion of patients in treatment 1 group
the probability of observing an event
delta is the true difference of log hazard rates between control group lamda1 and a test drug group lamda2
Chow SC, Shao J, Wang H. Sample Size Calculation in Clinical Research. New York: Marcel Dekker, 2003
# NOT RUN { Example.7.3.4<-Cox.Equivalence(0.05,0.2,log(2),0.5,0.8,0.5) Example.7.3.4 # }
Run the code above in your browser using DataLab