searchBounds: Obtain default bounds for the construction of the search...

View source: R/functions.R

searchBoundsR Documentation

Obtain default bounds for the construction of the search grid.

Description

The formula used is the continuity corrected Normal approximation from Fleiss et al (2003).

Usage

searchBounds(p0, p1, alpha = 0.05, beta = 0.2, twoSided = TRUE)

Arguments

p0

the response rate under the null hypothesis

p1

the response rate under the alternate hypothesis

alpha

the desired (one-sided) type 1 error rate

beta

the desired type 2 error rate

twoSided

two- or one-sided significance level?

Value

a list with three elements: "n" - the single stage sample size from Fleiss et al; "min" - the lower bound, 0.8*n; "max" - the upper bound, 2*n. floor() and ceiling() are applied as appropriate.


mtdesign documentation built on Aug. 23, 2025, 9:08 a.m.