bi2rlv2: Sample sizes for the exact Fisher type test for relevant...

Description Usage Arguments Value Author(s) References Examples

View source: R/bi2rlv2.R

Description

The function computes minimum sample sizes required in the randomized UMPU test for relevant differences between 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 λ.

Usage

1
bi2rlv2(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, Par. 11.3.3.

Examples

1
2
                                     
bi2rlv2(.6667,1.5,.05,.70,.50,.50,2.0)  

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