powered by
One or more Simon's two-stage designs.
ph2simon4(object, type = "minimax", ...)
a ph2simon object
character scalar or vector, see Slots
additional parameters, currently not in use
r1,r
non-negative integer scalars or vectors, number of responses in Stage-1 \(r_1\) and overall \(r\) required exclusively, in other words
pass Stage-1 if observed \(>r_1\) response;
reject \(H_0\) if observed \(>r\) responses.
n1,n
positive integer scalars or vectors, Stage-1 sample size \(n_1\) and total sample size \(n\).
pu,pa
double scalars
alpha,beta
nmax
integer
type
character scalars or vectors, type of Simon's two-stage design, one or more values among
'minimax'
(default) minimum total sample size
'optimal'
minimum expected total sample size under \(p_0\)
'n1'
minimum Stage-1 sample size
'maximax'
to use up the user-provided maximum total sample size, i.e., parameter nmax of function ph2simon
(x = clinfun::ph2simon(pu = .2, pa = .4, ep1 = .05, ep2 = .1)) ph2simon4(x, type = 'opt') ph2simon4(x) # default type = 'minimax'
Run the code above in your browser using DataLab