Skip to content
Prev 4838 / 5636 Next

[R-meta] Questions regarding REML and FE models and R^2 calculation in metafor

Hi Nevo,

Considering the structure of your data (50 references with an average of 10
experiments per  reference), I would suggest moving to a more flexible
model that includes random effects not only at the level of reference, but
also at the level of experiment, as in:
random = ~ 1 | Reference / Experiment
Using this random effects structure will then let you describe how the
moderator explains variation both between references and within references
(i.e., by comparing the variance components from a model with moderators to
the variance components from a model with an intercept alone).

It could also be useful to center the moderators by reference (i.e.,
calculate the reference-specific mean of the moderator and then subtract
this from the original values of the moderator). Centering is akin to
de-composing the predictor into within-reference and between-reference
variation. The within-reference variation would come only from those 7
studies where the value of the moderator changes across experiments. The
between-reference variation would come from all 50 studies if different
articles use different levels of the moderator. The model for a moderator X
would then be:
modes = ~ X_mean + X_centered
I would anticipate that the coefficients on these predictors would be less
sensitive to the random effects specification than using the un-centered
predictor X.

James


On Mon, Jul 24, 2023 at 6:24?AM Nevo Sagi via R-sig-meta-analysis <
r-sig-meta-analysis at r-project.org> wrote: