powered by
adjust Zhong's 2-/3-stage design for over-/under-running
adj.two(n1, r1, s1, n2, alpha1, alpha2, beta, pc, pe, ...)
sample size at stage 1.
inefficacy boundary at stage 1.
efficacy boundary at stage 1. if no early stopping for efficacy, s1 should equal to n1.
s1
n1
sample size at stage 2.
left-side overall type I error.
right-side overall type I error.
type II error.
a numeric vector of response rate. should be a vector with length 1 or 2.
alternative hypothesis.
not used argument.
An object of class "opt.design" is a list containing:
rejection regions
true type 1/2 errors
sample size at each stage
complete list of feasible designs
input; left-side type 1 error
input; right-side type 1 error
input; type 2 error
input; a vector of response rate.
input; a vector of alternative response rate
input; the alpha-spending function used
input; two- or three- stage design is used
To be added
# NOT RUN { 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) # }
Run the code above in your browser using DataLab