Introduction
Egger’s regression (Egger et al., 1997) detects funnel plot asymmetry by regressing standardised effect estimates on precision. In a symmetric funnel — the expected pattern under no publication bias — the regression passes through the origin. A non-zero intercept indicates that small-precision (small-sample) studies yield systematically different effects than large-precision (large-sample) studies, a pattern consistent with publication bias or small-study effects.
bayesma implements a fully Bayesian version of Egger’s regression via egger(). The Bayesian formulation provides:
- posterior distributions for the Egger intercept and slope, not just p-values
- flexible modelling of residual heterogeneity (multiplicative or additive)
- coherent quantification of evidence for asymmetry via Bayes factors
Model specification
Following Shi et al. (2020), the Bayesian Egger model is
where is the standardised effect (z-score) and is the standard error. Rearranging:
Here is the effect at infinite precision (no publication bias) and is the Egger regression coefficient: the rate at which the effect changes as a function of standard error.
Residual heterogeneity
Two models for the error term :
Multiplicative heterogeneity (Egger’s original formulation): where is a multiplicative overdispersion factor. corresponds to the standard fixed-effect Egger model.
Additive heterogeneity: where is the between-study heterogeneity, identical to the standard random-effects parameterisation.
Priors:
Fitting Egger’s test
egger_fit <- egger(
data,
heterogeneity = "additive"
)
summary(egger_fit)
egger_plot(egger_fit)heterogeneity = "multiplicative" reproduces the original Egger model. "additive" is preferable when the goal is to estimate the publication-bias adjusted effect while allowing for genuine heterogeneity.
Interpreting the output
summary() returns:
| Parameter | Interpretation |
|---|---|
alpha |
Pooled effect adjusted for publication bias (intercept) |
beta |
Egger slope: change in effect per unit SE |
tau |
Residual heterogeneity (additive model) |
kappa |
Overdispersion (multiplicative model) |
BF_beta |
Bayes factor for vs |
A large with posterior mass away from zero indicates funnel asymmetry. The Bayes factor quantifies evidence on a continuous scale:
| Interpretation | |
|---|---|
| Evidence against asymmetry | |
| – | Anecdotal |
| – | Moderate |
| – | Strong |
| Very strong |
Egger plot
egger_plot() produces a scatter plot of standardised effects vs standard error with the fitted Egger regression line and its 95% credible band.
Limitations
Egger’s test has low power when . A non-significant result does not rule out publication bias; it only indicates that the data are insufficient to detect asymmetry at the measured precision.
Funnel asymmetry can also arise from causes other than publication bias: genuine small-study effects, heterogeneity correlated with study size, or artefacts in effect size computation. A positive Egger test should prompt further investigation (selection models, PET-PEESE) rather than a reflexive conclusion of publication bias.
For a visual complement to the Egger test, see Funnel Plots.
