powered by
Ho: theta=0;
Ha: theta is not equal to 0.
Nonpara.Two.Sample(alpha, beta, k, p1, p2, p3)
significance level
power = 1-beta
k=n1/n2
\(p1=P(y_i \ge x_j)\)
\(p2=P(y_i \ge x_{j1} ~and~ y_{i} \ge x_{j2})\)
\(p3=P(y_{i1} \ge x_j ~and~ y_{i2} \ge x_{j})\)
Chow SC, Shao J, Wang H. Sample Size Calculation in Clinical Research. New York: Marcel Dekker, 2003
# NOT RUN { Example.14.3<-Nonpara.Two.Sample(0.05,0.2,1,0.7,0.8,0.8) Example.14.3 #54 # }
Run the code above in your browser using DataLab