powered by
H0: p1=p2
Ha: not equal
The test is finding whether there is a difference between the mean response rates of the test drug and reference drug
TwoSampleProportion.Equality(alpha, beta, p1, p2, k)
significance level
power = 1-beta
the mean response rate for test drug
the rate for reference drug
k=n1/n2
Chow SC, Shao J, Wang H. Sample Size Calculation in Clinical Research. New York: Marcel Dekker, 2003
# NOT RUN { Example.4.2.4<-TwoSampleProportion.Equality(0.05,0.2,0.65,0.85,1) Example.4.2.4 # }
Run the code above in your browser using DataLab