errors.SM: Exact error rates of specified sequential design
Description
For a given sequential design defined by vectors a, b and n, calculate the probability of a type 1 error (assuming p=p0) and type 2 error (assuming p=p1)
# NOT RUN {# Example 1 in table 1 of Lloyd (2020)n=c(5,6,5,9)
a=c(2,4,5,12)
b=c(5,9,11,13)
p0=.4p1=.75errors.SM(n,a,b,p0,p1)
# $type1# [1] 0.09590162# $type2# [1] 0.1060701# }