Skip to content
Prev 120 / 5632 Next

[R-meta] Two ways to calculate subgroup and overall average effect sizes

Dear Naike,

Take a look at:

http://www.metafor-project.org/doku.php/tips:comp_two_independent_estimates

and especially the last section (Meta-Regression with All Studies but Different Amounts of (Residual) Heterogeneity). To get an overall estimate, but allowing for different amounts of heterogeneity across the levels of some factor (e.g., 'alloc' here), you would use:

rma.mv(yi, vi, random = ~ alloc | trial, struct="DIAG", data=dat)

Adapt to your data accordingly.

Best,
Wolfgang