Description Usage Arguments Details Value Note Author(s) References Examples
Evaluation of the integral on the right-hand side of Equation (5.24) on p. 88 of Wellek S (2010) Testing statistical hypotheses of equivalence and noninferiority. Second edition.
1 | mcnby_ni_pp(N,DEL0,N10,N01)
|
N |
sample size |
DEL0 |
noninferiority margin to the difference of the parameters of the marginal binomial distributions under comparison |
N10 |
count of pairs with (X,Y) = (1,0) |
N01 |
count of pairs with (X,Y) = (0,1) |
The program uses 96-point Gauss-Legendre quadrature on each of 10 subintervals into which the range of integration is partitioned.
N |
sample size |
DEL0 |
noninferiority margin to the difference of the parameters of the marginal binomial distributions under comparison |
N10 |
count of pairs with (X,Y) = (1,0) |
N01 |
count of pairs with (X,Y) = (0,1) |
PPOST |
posterior probability of the alternative hypothesis K_1: δ > -δ_0 with respect to the noninformative prior determined according to Jeffrey's rule |
The program uses Equation (5.24) of Wellek S (2010) corrected for a typo in the middle line which must read
\int_{δ_0}^{(1+δ_0)/2}\Big[ B\big(n_{01}+1/2,n-n_{01}+1\big)\,\, p_{01}^{n_{01}-1/2}(1-p_{01})^{n-n_{01}}
.
Stefan Wellek <stefan.wellek@zi-mannheim.de>
Peter Ziegler <peter.ziegler@zi-mannheim.de>
Wellek S: Testing statistical hypotheses of equivalence and noninferiority. Second edition. Boca Raton: Chapman & Hall/CRC Press, 2010, Par. 5.2.3.
1 | mcnby_ni_pp(72,0.05,4,5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.