## 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)
#
# # there are two ways to generate the boundary plots
#
# # 1. specify plot=TRUE (default) in "binding()"
# nonbinding(L, U, theta, sigma, n.fix$n1, n.fix$n2, 1:K/K, alpha, beta)
#
# # 2. specify plot=FALSE in "binding()" and apply the "figureEF()" command
# bound <- nonbinding(L, U, theta, sigma, n.fix$n1, n.fix$n2, 1:K/K, alpha, beta, plot=FALSE)
# figureEF(bound, K)
#
# # obtain nminmax
# bound <- nminmax(L, U, theta, sigma, n.fix$n1, n.fix$n2, 1:K/K, alpha, beta, binding=FALSE)
# bound
# figureEF(bound, K)
# ## End(Not run)
Run the code above in your browser using DataLab