## Not run:
# L <- -0.2
# U <- 0.2
# theta <- 0
# sigma <- 0.4
# alpha <- 0.05
# beta <- 0.2
# K <- 4
# r <- 1
# n.fix <- nfix(r, L,U,theta,sigma,alpha,beta)
#
# bound1 <- nonbinding(L,U,theta,sigma, n.fix$n1, n.fix$n2, 1:K/K, alpha,beta, plot=FALSE)
# bound2<- nminmax(L, U, theta, sigma, n.fix$n1, n.fix$n2, 1:K/K, alpha, beta)
#
# theta <- L
# oc1 <- oc(L, U, theta, sigma, K, n.fix$n1, n.fix$n2, bound1, futility=TRUE)
# oc2 <- oc(L, U, theta, sigma, K, bound2$n1minmax, bound2$n2minmax, bound2, futility=TRUE)
#
# theta <- 0
# oc3 <- oc(L, U, theta, sigma, K, n.fix$n1, n.fix$n2, bound1, futility=TRUE)
# oc4 <- oc(L, U, theta, sigma, K, bound2$n1minmax, bound2$n2minmax, bound2, futility=TRUE)
# ## End(Not run)
Run the code above in your browser using DataLab