powered by
This function computes the critical boundaries and the error spent until each stage in group sequential trials
gbounds(t, iuse = 1, alpha = 0.05, phi = rep(1, length(alpha)))
a list of two vectors: bd critical boundaries, er error spent until each stage
bd
er
a vector of information times
a number of the type of the error spending function, from -2, -1, 1, 2, 3, 4
a number of type I error rate
a parameter for the power family or the HSD gamma family
Jiangtao Gou
If the original Pocock is implemented, we specify iuse=-2. If the original OBrien-Flemming is implemented, we specify iuse=-1.
iuse=-2
iuse=-1
t<-c(0.5,0.8,1) iuse <- 4 gbounds(t=t, iuse=iuse) gbounds(t=(1:5)/5, iuse=4, alpha=0.01, phi=-4) gbounds(t=(1:5)/5, iuse=-2, alpha=0.01)
Run the code above in your browser using DataLab