Introduction
Standard two-stage random-effects meta-analysis treats the within-study standard errors as known. This is approximately valid when each study is large, but when studies have small samples the are estimated with non-trivial uncertainty. Ignoring this uncertainty produces credible intervals for that are too narrow.
Two adjustments are supported in bayesma: the Hartung–Knapp–Sidik–Jonkman (HKSJ) correction and a -approximation to the reference distribution.
The HKSJ correction
Hartung (1999), Knapp and Hartung (2003), and Sidik and Jonkman (2006) independently proposed a correction to the variance of the pooled estimator that accounts for the imprecision of .
The standard pooled estimator is
The HKSJ correction replaces the usual variance estimator with
Inference then uses a reference distribution rather than . Simulation studies show that the HKSJ correction substantially improves coverage when , with the improvement most pronounced at .
Bayesian implementation
In a Bayesian framework the HKSJ correction is implemented by replacing the Gaussian sampling model with a scaled model:
where is a multiplicative scale factor estimated from the data. A prior is placed on .
This formulation recovers the spirit of the HKSJ correction — acknowledging that the may be imprecise — within a fully Bayesian model.
The -approximation
A simpler adjustment replaces the Gaussian reference distribution for with a distribution, without modifying the likelihood. This is the approach recommended by Hedges and Vevea (1998) for frequentist meta-analysis and is sometimes referred to as the DerSimonian–Kacker–Hartung approach.
In bayesma the -approximation is implemented by placing a prior on , effectively widening the prior tails to match what a reference distribution would imply. This is a conservative choice: it adds uncertainty that is not directly estimated from the data.
When to use each adjustment
| Situation | Recommendation |
|---|---|
| , studies reasonably large | No adjustment needed |
| or some studies have | HKSJ adjustment |
| HKSJ; also consider informative priors on |
The HKSJ correction is the preferred adjustment when is small. The -approximation is a computationally cheaper alternative with slightly lower power.
Specifying adjustments in bayesma
Interaction with RE distribution
The HKSJ correction and the choice of RE distribution (Gaussian, Student-, skew-normal) are independent. A Student- RE distribution with HKSJ correction accounts for both the between-study distributional form and the imprecision of within-study variance estimates.
Simulation evidence
Simulations under a range of (5 to 30), values (0 to 1 on the log-OR scale), and study sizes consistently show that:
- the unadjusted estimator has 80–88% coverage at the nominal 95% level when
- HKSJ restores coverage to 93–96% in the same settings
- the -approximation restores coverage to 91–94%
The HKSJ advantage over the -approximation is largest when is estimated with high uncertainty, i.e., when is small and is large.
