bi2diffac {EQUIVNONINF} | R Documentation |
Determination of a corrected nominal significance level for the asymptotic test for equivalence
of two unrelated binomial proportions with respect to the difference
of their population counterparts
Description
The program computes the largest nominal significance level
which can be substituted for the target level without making the exact
size of the asymptotic testing procedure larger than
.
Usage
bi2diffac(alpha,m,n,del1,del2,sw,tolrd,tol,maxh)
Arguments
alpha |
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 |
del2 |
upper limit of the hypothetical equivalence range for |
sw |
width of the search grid for determining the maximum of the rejection probability on the common boundary of the hypotheses |
tolrd |
horizontal distance of the left- and right-most boundary point to be included in the search grid |
tol |
upper bound to the absolute difference between size and target level below which the search for a corrected nominal level terminates |
maxh |
maximum number of interval halving steps to be carried out in finding the maximally raised nominal level |
Value
alpha |
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 |
del2 |
upper limit of the hypothetical equivalence range for |
sw |
width of the search grid for determining the maximum of the rejection probability on the common boundary of the hypotheses |
tolrd |
horizontal distance of the left- and right-most boundary point to be included in the search grid |
tol |
upper bound to the absolute difference between size and target level below which the search for a corrected nominal level terminates |
maxh |
maximum number of interval halving steps to be carried out in finding the maximally raised nominal level |
NH |
number of interval-halving steps actually performed |
ALPH_0 |
value of the raised nominal level obtained after NH steps |
SIZE0 |
size of the critical region corresponding to |
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, 6.6.6.
Examples
bi2diffac(0.05,20,20,0.40,0.40,0.1,1e-6,1e-4,3)