bi2aeq3 {EQUIVNONINF} | R Documentation |

The objective is to raise the nominal significance level as far as possible without exceeding the target significance level in the nonrandomized version of the test. The approach goes back to R.D. Boschloo (1970) who used the same technique for reducing the conservatism of the traditional nonrandomized Fisher test for superiority.

bi2aeq3(m,n,rho1,rho2,alpha,sw,tolrd,tol,maxh)

`m` |
size of Sample 1 |

`n` |
size of Sample 2 |

`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 |

`sw` |
width of the search grid for determining the maximum of the rejection probability on the common boundary of the hypotheses |

`tolrd` |
horizontal distance from 0 and 1, respectively 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 |

It should be noted that, as the function of the nominal level, the size of the nonrandomized test is piecewise constant. Accordingly, there is a nondegenerate interval of "candidate" nominal levels serving the purpose. The limits of such an interval can be read from the output. In terms of execution time, bi2aeq3 is the most demanding program of the whole package.

`m` |
size of Sample 1 |

`n` |
size of Sample 2 |

`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 |

`sw` |
width of the search grid for determining the maximum of the rejection probability on the common boundary of the hypotheses |

`tolrd` |
horizontal distance from 0 and 1, respectively 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 |

`ALPH_0` |
current trial value of the raised nominal level searched for |

`NHST` |
number of interval-halving steps performed up to now |

`SIZE` |
size of the critical region corresponding to |

Stefan Wellek <stefan.wellek@zi-mannheim.de>

Peter Ziegler <peter.ziegler@zi-mannheim.de>

Boschloo RD: Raised conditional level of significance for the 2 x 2- table when testing the equality of two probabilities. Statistica Neerlandica 24 (1970), 1-35.

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

bi2aeq3(50,50,0.6667,1.5000,0.05,0.01,0.000001,0.0001,5)

[Package *EQUIVNONINF* version 1.0.2 Index]