Calculates the operating characteristics of a two-stage boundary.
oc.twostage.bdry(pu, pa, r1, n1, r, n)
unacceptable response rate
response rate that is desirable
first stage threshold to declare treatment undesirable
first stage sample size
overall threshold to declare treatment undesirable
total sample size
oc.twostage.bdry returns the type I and II error rates as well as the probability of early temination and expected sample size under pu for a specific boundary.