Find stopping boundary via binomial or beta-binomial distribution. For the latter, the overdispersion factor (or design effect) by which the variance exceeds the regular binomial variance is printed.
Source:R/findbound.R
findbound.RdFind stopping boundary via binomial or beta-binomial distribution. For the latter, the overdispersion factor (or design effect) by which the variance exceeds the regular binomial variance is printed.
Arguments
- n
total number of events
- alpha_test
nominal alpha for the binomial test
- pH0
proportion of events in the experimental arm under the null hypothesis, typically based on randomization ratio (e.g. 0.5 for a 1:1 randomization)
- alternative
direction of alternative, "less" or "greater"
- icc
intraclass correlation if there is more than one event per patient