## Not run:
# L <- -0.2
# U <- 0.2
# theta <- 0
# sigma <- 0.4
# alpha <- 0.05
# beta <- 0.2
# K <- 4
# r <- 1
#
# # the sample size per group with a traditional nonsequential design
# n.fix <- nfix(r, L,U,theta,sigma,alpha,beta)
#
# # nminmax with nonbinding futility
# bound1 <- nminmax(L, U, theta, sigma, n.fix$n1, n.fix$n2, 1:K/K, alpha, beta)
# figureEF(bound1, K)
#
# # nminmax with binding futility
# bound2 <- nminmax(L, U, theta, sigma, n.fix$n1, n.fix$n2, 1:K/K, alpha, beta, binding=TRUE)
# figureEF(bound2, K)
# ## End(Not run)
Run the code above in your browser using DataLab