adj.two {tsdf} | R Documentation |
Zhong's 2-/3- stage Phase II design
Description
adjust Zhong's 2-/3-stage design for over-/under-running
Usage
adj.two(n1, r1, s1, n2, alpha1, alpha2, beta, pc, pe, ...)
Arguments
n1 |
sample size at stage 1. |
r1 |
inefficacy boundary at stage 1. |
s1 |
efficacy boundary at stage 1. if 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 rate. should be a vector with length 1 or 2. |
pe |
alternative hypothesis. |
... |
not used argument. |
Details
To be added
Value
An object of class "opt.design" is a list containing:
bdry |
rejection regions |
error |
true type 1/2 errors |
n |
sample size at each stage |
complete |
complete list of feasible designs |
alpha1 |
input; left-side type 1 error |
alpha2 |
input; right-side type 1 error |
beta |
input; type 2 error |
pc |
input; a vector of response rate. |
pe |
input; a vector of alternative response rate |
sf |
input; the alpha-spending function used |
stage |
input; two- or three- stage design is used |
Author(s)
Wenchuan Guo <wguo1017@gmail.com>, Jianan Hui <jiananhuistat@gmail.com>
Examples
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)