mcnempow: Exact rejection probability of the asymptotic test for...

Description Usage Arguments Value Author(s) References Examples

View source: R/mcnempow.R

Description

The program computes exact values of the rejection probability of the asymptotic test for equivalence in the sense of -δ_0 < p_{10}-p_{01} < δ_0, at any nominal level α. [The largest α for which the test is valid in terms of the significance level, can be computed by means of the program mcnemasc.]

Usage

1
 mcnempow(alpha,n,del0,p10,p01)

Arguments

alpha

nominal significance level

n

sample size

del0

upper limit set to |δ| under the alternative hypothesis of equivalence

p10

true value of P[X=1,Y=0]

p01

true value of P[X=0,Y=1]

Value

alpha

nominal significance level

n

sample size

del0

upper limit set to |δ| under the alternative hypothesis of equivalence

p10

true value of P[X=1,Y=0]

p01

true value of P[X=0,Y=1]

POW

exact rejection probability of the asymptotic McNemar test for equivalence at nominal level α

ERROR

error indicator messaging "!!!!!" if the sufficient condition for the correctness of the result output by the program was found violated

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, p.84.

Examples

1
mcnempow(0.024902,50,0.20,0.30,0.30)

Example output

Loading required package: BiasedUrn
 alpha = 0.024902    n = 50    del0 = 0.2    p10 = 0.3    p01 = 0.3    POW = 0.1151487 
 ERROR = NONE

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