mcnasc_ni: Determination of a corrected nominal significance level for...

Description Usage Arguments Value Author(s) References Examples

View source: R/mcnasc_ni.R

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

1
mcnasc_ni(alpha,n,del0,sw,tol,maxh)

Arguments

alpha

significance level

n

sample size

del0

absolute value of the noninferiority margin for δ := p_{10}-p_{01}, with p_{10} and p_{01} denoting the probabilities of discordant pairs of both kinds

sw

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

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

n

sample size

del0

absolute value of the noninferiority margin for δ := p_{10}-p_{01}, with p_{10} and p_{01} denoting the probabilities of discordant pairs of both kinds

sw

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

ALPH_0

value of the corrected nominal level obtained after nh steps

SIZE_UNC

exact size of the rejection region of the test at uncorrected nominal level α

SIZE0

exact size of the rejection region of the test at nominal level α_0

NH

number of interval-halving steps actually performed

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, Par. 5.2.3.

Examples

1
mcnasc_ni(0.05,50,0.05,0.05,0.0001,5)

Example output

Loading required package: BiasedUrn
 alpha = 0.05   n = 50   del0 = 0.05   sw = 0.05   alpha0 = 0.03125   SIZE_unc = 0.08287665  SIZE0 = 0.04824113   NH = 5

EQUIVNONINF documentation built on July 12, 2021, 5:08 p.m.