powered by
Ho: \(p_i=p_j\) Ha: not all equal
OneWayANOVA.PairwiseComparison(alpha, beta, tau, p1, p2, delta)
significance level
power = 1-beta
there are tau comparisons here
the mean response rate for test drug
the rate for reference drug
delta=\(p_i - p_j\)
Chow SC, Shao J, Wang H. Sample Size Calculation in Clinical Research. New York: Marcel Dekker, 2003
# NOT RUN { Example.4.4.2<-OneWayANOVA.PairwiseComparison(0.05,0.2,2,0.2,0.4,-0.2) Example.4.4.2 Example.4.4.2<-OneWayANOVA.PairwiseComparison(0.05,0.2,2,0.2,0.5,-0.3) Example.4.4.2 # }
Run the code above in your browser using DataLab