bi2dipow: Exact rejection probability of the asymptotic test for...

Description Usage Arguments Value Author(s) References Examples

View source: R/bi2dipow.R

Description

The program computes exact values of the rejection probability of the asymptotic test for equivalence in the sense of -δ_1 < p_1-p_2 < δ_2, at any nominal level α_0. [The largest α_0 for which the test is valid in terms of the significance level, can be computed by means of the program bi2diffac.]

Usage

1
bi2dipow(alpha0,m,n,del1,del2,p1,p2)

Arguments

alpha0

nominal significance level

m

size of Sample 1

n

size of Sample 2

del1

absolute value of the lower limit of the hypothetical equivalence range for p_1-p_2

del2

upper limit of the hypothetical equivalence range for p_1-p_2

p1

true value of the success probability in Population 1

p2

true value of the success probability in Population 2

Value

alpha0

nominal significance level

m

size of Sample 1

n

size of Sample 2

del1

absolute value of the lower limit of the hypothetical equivalence range for p_1-p_2

del2

upper limit of the hypothetical equivalence range for p_1-p_2

p1

true value of the success probability in Population 1

p2

true value of the success probability in Population 2

POWEX0

exact rejection probability under (p_1,p_2) of the test at nominal level α_0 for equivalence of two binomial distributions with respect to the difference of the success probabilities

ERROR

error indicator answering the question of whether or not the sufficient condition for the correctness of the result output by the program, was satisfied

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. 6.6.6.

Examples

1
bi2dipow(0.0228,50,50,0.20,0.20,0.50,0.50)

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