bi2aeq2 {EQUIVNONINF}R Documentation

Sample sizes for the exact Fisher type test for equivalence

Description

The function computes minimum sample sizes required in the randomized UMPU test for equivalence of two binomial distributions with respect to the odds ratio. Computation is done under the side condition that the ratio m/n has some predefined value \lambda.

Usage

bi2aeq2(rho1,rho2,alpha,p1,p2,beta,qlambd)

Arguments

rho1

lower limit of the hypothetical equivalence range for the odds ratio

rho2

upper limit of the hypothetical equivalence range for the odds ratio

alpha

significance level

p1

true success rate in Population 1

p2

true success rate in Population 2

beta

target value of power

qlambd

sample size ratio m/n

Value

rho1

lower limit of the hypothetical equivalence range for the odds ratio

rho2

upper limit of the hypothetical equivalence range for the odds ratio

alpha

significance level

p1

true success rate in Population 1

p2

true success rate in Population 2

beta

target value of power

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, \S 6.6.4.

Examples

bi2aeq2(0.5,2.0,0.05,0.5,0.5,0.60,1.0)

[Package EQUIVNONINF version 1.0.2 Index]