| adj.two | R Documentation |
Adjust Zhong's two-stage design for over-running or under-running.
adj.two(n1, r1, s1, n2, alpha1, alpha2, beta, pc, pe, ...)
n1 |
Sample size at stage 1. |
r1 |
Inefficacy boundary at stage 1. |
s1 |
Efficacy boundary at stage 1. If there is no early stopping for
efficacy, |
n2 |
Sample size at stage 2. |
alpha1 |
Left-side overall type I error. |
alpha2 |
right-side overall type I error. |
beta |
Type II error. |
pc |
A numeric vector of response rates. It should have length 1 or 2. |
pe |
Alternative hypothesis response rate. |
... |
Unused arguments. |
This function enumerates feasible second-stage boundaries after the first-stage sample size and boundaries have been fixed.
An object of class "opt.design", returned as a list
containing:
bdry |
The rejection boundaries. |
error |
The true type I and type II errors. |
n |
The sample size at each stage. |
complete |
The complete list of feasible designs. |
alpha1 |
The input left-side type I error. |
alpha2 |
The input right-side type I error. |
beta |
The input type II error. |
pc |
The input response-rate vector. |
pe |
The input alternative response rate. |
stage |
The number of stages in the selected design. |
Wenchuan Guo <wguo1017@gmail.com>, Jianan Hui <jiananhuistat@gmail.com>
n1 <- 22
r1 <- 6
s1 <- 22
n2 <- 24
pc <- 0.4
pe <- pc + 0.15
alpha1 <- 0.3
alpha2 <- 0.1
beta <- 0.2
out <- adj.two(n1, r1, s1, n2, alpha1, alpha2, beta, pc, pe)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.