postmys: Bayesian posterior probability of the alternative hypothesis...

Description Usage Arguments Details Value Author(s) References Examples

View source: R/postmys.R

Description

Evaluation of the integral appearing on the right-hand side of equation (3.6) on p. 38 of Wellek S (2010) Testing statistical hypotheses of equivalence and noninferiority. Second edition

Usage

1
postmys(n,dq,sd,eps1,eps2,tol)

Arguments

n

sample size

dq

mean within-pair difference observed in the sample under analysis

sd

square root of the sample variance of the within-pair differences

eps1

absolute value of the left-hand limit of the hypothetical equivalence range for δ/σ_D

eps2

right-hand limit of the hypothetical equivalence range for δ/σ_D

tol

tolerance for the error induced through truncating the range of integration on the right

Details

The program uses 96-point Gauss-Legendre quadrature.

Value

n

sample size

dq

mean within-pair difference observed in the sample under analysis

sd

square root of the sample variance of the within-pair differences

eps1

absolute value of the left-hand limit of the hypothetical equivalence range for δ/σ_D

eps2

right-hand limit of the hypothetical equivalence range for δ/σ_D

tol

tolerance for the error induced through truncating the range of integration on the right

PPOST

posterior probability of the set of all (δ,σ_D) such that -\varepsilon_1 < δ/σ_D < \varepsilon_2

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. 3.2.

Examples

1
postmys(23,0.16,3.99,0.5,0.5,1e-6)

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