# NOT RUN {
# Optimal two-stage safety design with pu (p0) = 0.33 vs. pa (p1) = 0.20
oc.gentwostage.bdry(0.33, 0.20, 8, 26, 22, 85)
# Optimal two-stage efficacy design with pu (p0) = 0.67 vs. pa (p1) = 0.80
oc.gentwostage.bdry(0.67, 0.80, 18, 26, 63, 85)
# }
Run the code above in your browser using DataLab