Skip to content
Prev 3999 / 5636 Next

[R-meta] Question on three-level meta-analysis

I still don't quite understand how you want to compute a var-cov matrix for the level "category". One can compute covariances for estimates that are correlated. This isn't done at some 'level' but it is done for the estimates directly. The basic rule is this: The sampling errors of two estimates are dependent when there is overlap (either full or partial) in subjects that contribute information to their computation. See also this presentation:

https://www.wvbauer.com/lib/exe/fetch.php/talks:2021_viechtbauer_dortmund_workflow_ma.html

So, if there are two estimates for different 'categories' and they are based on the same subjects, then yes, you ideally try to compute or at least approximate the covariance between their sampling errors. Just adding a random effect at the 'category' level does not capture the dependency in the sampling errors, only the potential dependency in the underlying true effects.

Computing/approximating the covariance can be difficult, which is where cluster-robust inference methods come into play. Again, see the talk above for further details. Note that if you have the 'devel' version of metafor installed, at the very end, one can now just do:

robust(res, cluster=dat$study, clubSandwich=TRUE)

to get the cluster-robust results based on the clubSandwich methods.

Best,
Wolfgang