bi2by_ni_del: Objective Bayesian test for noninferiority in the two-sample...

Description Usage Arguments Details Value Author(s) References Examples

View source: R/bi2by_ni_del.R

Description

Implementation of the construction described on pp. 185-6 of Wellek S (2010) Testing statistical hypotheses of equivalence and noninferiority. Second edition.

Usage

1
bi2by_ni_del(N1,N2,EPS,SW,NSUB,ALPHA,MAXH)

Arguments

N1

size of Sample 1

N2

size of sample 2

EPS

noninferiority margin to the difference of success probabilities

SW

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

NSUB

number of subintervals for partitioning the range of integration

ALPHA

target significance level

MAXH

maximum number of interval halving steps to be carried out in finding the maximally admissible nominal level

Details

The program uses 96-point Gauss-Legendre quadrature on each of the NSUB intervals into which the range of integration is partitioned.

Value

N1

size of Sample 1

N2

size of sample 2

EPS

noninferiority margin to the difference of success probabilities

NSUB

number of subintervals for partitioning the range of integration

SW

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

ALPHA0

result of the search for the largest admissible nominal level

SIZE0

size of the critical region corresponding to alpha_0

SIZE_UNC

size of the critical region of the test at uncorrected nominal level

Author(s)

Stefan Wellek <[email protected]>
Peter Ziegler <[email protected]>

References

Wellek S: Statistical methods for the analysis of two-armed non-inferiority trials with binary outcomes. Biometrical Journal 47 (2005), 48–61.

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

Examples

1
bi2by_ni_del(20,20,.10,.01,10,.05,5)

Example output

Loading required package: BiasedUrn
 N1 = 20  N2 = 20  EPS = 0.1  ALPHA = 0.05  NSUB = 10  SW = 0.01 
 ALPHA0 = 0.025625 SIZE0 = 0.03644203 SIZE_UNC = 0.101294

EQUIVNONINF documentation built on Sept. 19, 2017, 5:06 p.m.