bi2wld_ni_del: Function to compute corrected nominal levels for the Wald...

Description Usage Arguments Details Value Author(s) References Examples

View source: R/bi2wld_ni_del.R

Description

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

Usage

1
bi2wld_ni_del(N1,N2,EPS,SW,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

ALPHA

target significance level

MAXH

maximum number of interval-halving steps

Details

The program computes the largest nominal significance level to be used for determining the critical lower bound to the Wald-type statistic for the problem of testing H:p_1 ≤ p_2 - \varepsilon versus K: p_1 < p_2 - \varepsilon.

Value

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

ALPHA

target significance level

MAXH

maximum number of interval-halving steps

ALPHA0

corrected nominal level

SIZE0

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

SIZE_UNC

size of the test at uncorrected nominal level ALPHA

ERR_IND

indicator taking value 1 when it occurs that the sufficient condition allowing one to restrict the search for the maximum of the rejection probability under the null hypothesis to its boundary, fails to be satisfied; otherwise the indicator retains its default value 0.

Author(s)

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

References

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

Examples

1
bi2wld_ni_del(25,25,.10,.01,.05,10) 

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