powered by
pi is the proportion of response in the ith group.
Ho: p1=p2=...=pk
Ha: L(p)= \( \sum ci \times pi = \epsilon\), not equal to 0
Dose.Response.binary(alpha, beta, pi, ci, fi)
significance level
power = 1-beta
a linear contrast coefficients ci with \( \sum ci=0 \).
fi=ni/n is the sample size fraction for the ith group
Chow SC, Shao J, Wang H. Sample Size Calculation in Clinical Research. New York: Marcel Dekker, 2003
# NOT RUN { pi=c(0.05,0.12,0.14,0.16); ci=c(-6,1,2,3); Example.11.2<-Dose.Response.binary(alpha=0.05,beta=0.2,pi=pi,ci=ci,fi=1/4) Example.11.2 #382 # }
Run the code above in your browser using DataLab