bi2ste2: Sample sizes for the exact Fisher type test for...

Description Usage Arguments Details Value Author(s) References Examples

View source: R/bi2ste2.R

Description

Sample sizes for the exact Fisher type test for noninferiority

Usage

1
bi2ste2(eps, alpha, p1, p2, bet, qlambd)

Arguments

eps

noninferiority margin to the odds ratio

alpha

significance level

p1

success rate in Population 1

p2

success rate in Population 2

bet

target power value

qlambd

sample size ratio m/n

Details

The program computes the smallest sample sizes m,n satisfying m/n = λ required for ensuring that the power of the randomized UMPU test does not fall below β.

Value

eps

noninferiority margin to the odds ratio

alpha

significance level

p1

success rate in Population 1

p2

success rate in Population 2

bet

target power value

qlambd

sample size ratio m/n

M

minimum size of Sample 1

N

minimum size of Sample 2

POW

power of the randomized UMPU test attained with the computed values of m, n

Author(s)

Stefan Wellek <stefan.wellek@zi-mannheim.de>
Peter Ziegler <peter.ziegler@zi-mannheim.de>

References

Wellek S: Testing statistical hypotheses of equivalence and noninferiority. Second edition. Boca Raton: Chapman & Hall/CRC Press, 2010, 6.6.1.

Examples

1
bi2ste2(0.5,0.05,0.9245,0.9065,0.80,1.00)

Example output

Loading required package: BiasedUrn
 EPS =  0.5    ALPHA =  0.05 
 P1 =  0.9245    P2 =  0.9065 
 BETA =  0.8    LAMBDA =  1 
 
 M =  194    N =  194         POW =  0.8010046

EQUIVNONINF documentation built on July 12, 2021, 5:08 p.m.