Skip to contents

Calculate stopping boundaries

getHarmBound()
Harm boundaries for safety testing
convertRisks()
Convert the proportion of events in the treatment arms to risk differences and ratios (and vice versa)
findbound()
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.
getAlphaPerTest()
Test-wise alpha necessary to control either the family-wise type I error or the power at a specified level

Plot stopping boundaries

plot(<harmbound>)
Plot method for harmbound objects produced by getHarmBound
harmboundPlot()
Plot harmbounds and the observed events
absstopPlot()
Plot absolute stopping probabilities
cumstopPlot()
Plot cumulative stopping probabilities
opcharStopPlot()
Plot cumulative stopping probabilities by hypothesis
opcharNPlot()
Plot expected number of events

Simulate safety stopping values

simSafetyStop()
Simulate safety stopping