Skip to main content
. Author manuscript; available in PMC: 2020 Apr 1.
Published in final edited form as: Stat Methods Med Res. 2017 Dec 22;28(4):1003–1018. doi: 10.1177/0962280217741334

Algorithm 2.

Posterior predictive power and coverage.

Input:
S simulated odds ratios ORm and geometric standard errors SEm for quantification methods m = 1, … ,M.
 Level α at which to assess significance of statistical testing and to compute 100(1 − α)% confidence intervals.
 Specification of a one or two-sided alternative HA to the null hypothesis H0 : OR = 1.
 Reference odds ratio OR.
Output: Statistical powerm to accept the alternative hypothesis, and confidence interval coveragem of the reference odds ratio.
1: if HA : OR ≠ 1 then
2: αα2
3: end if
4: for m = 1 to M do
5: powerm ← 0
6: coveragem ← 0
7: for s = 1 to S do
8:   lower ← 0 ▻ Initialize interval lower
9:   upper ← ∞ ▻ and upper bounds.
10: if HA : OR ≠ 1 or HA : OR > 1 then
11:     lowerORm(s)/(SEm(s))z1-α
12:   end if
13:   if HA : OR ≠ 1 or HA : OR < 1 then
14:     upperORm(s)×(SEm(s))z1-α
15:   end if
16:   A ← {x : lower < x < upper}
17:   powermpowerm + 1Ā (1)/S
18:   coveragemcoveragem + 1A(OR)/S
19: end for
20: end for