Description Usage Arguments Value References See Also Examples
Calculate the type I error or power of a two-stage design
1 | binom.power(r1,n1,r,n,p)
|
r1 |
first stage threshold to stop the trial for futility. |
n1 |
first stage sample size. |
r |
overall threshold to stop the trial for futility. |
n |
total sample size. |
p |
pre-specified response rate, p=p_0 for calculating type I error, p=p_1 for calculating power. |
prob |
the power function: α = Pr(R ≤ r| p=p_0) or 1-β=Pr(R ≤ r| p=p_1) |
Simon, R. (1989). Optimal two-stage designs for phase II clinical trials. Controlled clinical trials 10(1), 1-10.
binom.design
1 2 3 | ## Calculate type I error
binom.power(5, 31, 16, 76, 0.15)
binom.power(5, 31, 16, 76, 0.3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.