Hostname: page-component-74656f9884-6grmk Total loading time: 0 Render date: 2026-11-05T12:40:41.997Z Has data issue: false hasContentIssue false

A tutorial on fitting flexible meta-analytic models with structural equation modeling in R

Published online by Cambridge University Press:  10 August 2026

Mike W.-L. Cheung*
Affiliation:
Department of Psychology, National University of Singapore , Singapore
Rights & Permissions [Opens in a new window]

Abstract

There are various statistical models with different features and assumptions in meta-analysis. Popular models include the fixed-effect (or common effect), random-effects, and mixed-effects models. Apart from these models, several alternative models, such as the multiplicative error model (also known as the unrestricted weighted least squares model), the hybrid of additive and multiplicative error models, and the location-scale model, have been proposed in the literature. Understanding these models can be challenging for researchers without a solid mathematical background. Implementing or modifying these models is even more challenging for researchers unless they have advanced statistical and programming knowledge. This tutorial elucidates a structural equation modeling (SEM) framework to understand these models. Several R packages are introduced to facilitate the specification and generation of graphical models for these meta-analytic models. Researchers may fit these models with the full information maximum likelihood estimation method. This holds significant potential across two domains. First, it can be used as an educational tool in teaching and learning meta-analytic models. Second, the framework supports the development and evaluation of novel meta-analytical models, which have not yet been implemented in current meta-analysis software, thereby fostering advancements in meta-analytic methods. This tutorial also demonstrates, using two real datasets, how to extend it to address research questions involving complex meta-analytic data. Limitations and future directions to extend the SEM-based meta-analysis are discussed.

Information

Type
Tutorial
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Open Practices
Open materials
Copyright
© The Author(s), 2026. Published by Cambridge University Press on behalf of The Society for Research Synthesis Methodology
Figure 0

Figure 1 Structural equation models of fixed- and random-effects models.Note: Figure (a) illustrates a fixed-effect (or common-effect) model. Panels (b) and (c) depict a random-effects model that incorporates additive heterogeneity error. The sampling error ei$e_i$ is conceptualized as a latent variable in Figures (a) and (b) and as measurement error in Figure (c). Here, yi$y_i$ represents the effect size for the ith study, while data.vi$data.vi$ indicates its known sampling error variance. Additionally, ui$u_i$ stands for the random effect with τ2$\tau ^2$ representing the heterogeneity variance. Furthermore, μ$\mu $ denotes the average effect (or common effect in the fixed-effect model).Figure 1 Long description.

Figure 1

Table 1 Examples of lavaan syntaxTable 1 Long description.

Figure 2

Figure 2 Structural equation models of meta-analytic models with multiplicative and additive heterogeneity.Note: Figure (a) illustrates a meta-analytic model characterized by multiplicative heterogeneity, while Figure (b) depicts a model that incorporates both multiplicative and additive heterogeneity. yi$y_i$ represents the effect size for the ith study, and data.vi$data.vi$ indicates the known sampling error variance associated with that effect size. The symbol μ$\mu $ denotes the average effect across studies. Additionally, ui$u_i$ represents the additive random effect, with τ2$\tau ^2$ indicating the variance associated with heterogeneity. The parameter ϕ$\phi $ serves as the scaling factor for the multiplicative heterogeneity.Figure 2 Long description.

Figure 3

Table 2 Results of six meta-analytic modelsTable 2 Long description.

Figure 4

Figure 3 Structural equation models of univariate meta-analysis with one study characteristic.Note: Figures (a) and (b) represent fixed-x and random-x mixed-effects meta-analyses, respectively. In these panels, yi$y_i$ and data.vi$data.vi$ represent the effect size and its known sampling error variance in the ith study, respectively, while ui$u_i$ and ei$e_i$ denote the random effect and sampling error in the ith study, respectively. Additionally, μ$\mu $ represents the average effect, and τ2$\tau ^2$ represents the random-effects (residual) heterogeneity variance.Figure 3 Long description.

Figure 5

Figure 4 A structural equation model of regressing one study characteristic zi$z_i$ on the true effect size fyi$f_{yi}$.Note: yi$y_i$ and data.vi$data.vi$ represent the effect size and its known sampling error variance in the ith study, respectively. fyi$f_{yi}$ and zi$z_i$ represent the true effect size and the outcome variable in the ith study, respectively. Furthermore, μy$\mu _y$ signifies the average effect, while τy2$\tau ^2_y$ indicates the variance of random-effects heterogeneity.

Figure 6

Figure 5 Structural equation models of partially standardized meta-regression (a) and correlation between a true effect size and a covariate (b).Note: Figures (a) and (b) illustrate models with partially standardized effects and correlation between an effect size and a covariate. In these panels, yi$y_i$ and data.vi$data.vi$ represent the effect size and its known sampling error variance in the ith study, respectively, while ui$u_i$ and ei$e_i$ denote the random effect and sampling error in the ith study, respectively. Additionally, μ$\mu $ represents the average effect, and τ2$\tau ^2$ represents the random-effects (residual) heterogeneity variance.Figure 5 Long description.

Figure 7

Figure 6 Some meta-regression models.Note: Figure (a) shows a standard mixed-effects model on the true effect size (fyi$f_{y_i}$) with fyi=β0+β1xi+ui$f_{yi} = \beta _0 + \beta _1 x_i + u_i$ and Var(ui)=τ2$\mathsf {Var} \left ( u_i \right )=\tau ^2$. Figure (b) shows a location-scale model on the heterogeneity variance with fyi=μ+ui$f_{yi} = \mu + u_i$ and Var(ui)=exp⁡(α0+α1xi)$\mathsf {Var} \left ( u_i \right ) = \exp (\alpha _0 + \alpha _1 x_i)$. Panel (c) shows a location-scale model on both the mean and the heterogeneity variance with fyi=β0+β1xi+ui$f_{yi} = \beta _0 + \beta _1 x_i + u_i$ and Var(ui)=exp⁡(α0+α1xi)$\mathsf {Var} \left ( u_i \right ) = \exp (\alpha _0 + \alpha _1 x_i)$. The shaded areas represent the 95% predictive intervals of the true effect size.Figure 6 Long description.

Figure 8

Figure 7 A structural equation model of a bivariate random-effects meta-analysis by regressing a true effect on another true effect.Note: yi(1)$y^{(1)}_i$ and yi(2)$y^{(2)}_i$ are two effect sizes in the ith study. The terms ui(1)$u^{(1)}_i$ and ui(2)$u^{(2)}_i$, as well as ei(1)$e^{(1)}_i$ and ei(2)$e^{(2)}_i$, represent the two random effects and sampling errors in the ith study, respectively. The matrices T$\boldsymbol {T}$ and Vi$\boldsymbol {V}_i$ (specifically data.v11i$data.v11i$, data.v21i$data.v21i$, and data.v22i$data.v22i$) are the 2×2$2\times 2$ heterogeneity covariance matrix of the random effects and the known sampling error covariance matrix, respectively. μ(1)$\mu ^{(1)}$ is the average effect of fi(1)$f^{(1)}_i$. β0(2)$\beta ^{(2)}_0$ and β1(2)$\beta ^{(2)}_1$ are the intercept and slope in regressing fi(2)$f^{(2)}_i$ on fi(1)$f^{(1)}_i$.Figure 7 Long description.