1
$\begingroup$

Hi there :) I am trying to run a meta analysis using rma.uni in the metafor package in r but cannot work out how to add both fixed effects (eg bird migration status) and random effects (eg species, habitat type etc.) in the same model, is this possible to do this or would I need to use a different package? Thank you!

$\endgroup$
2
$\begingroup$

The rma.uni() function doesn't allow you to add random effects (beyond the estimate-level random effects that are automatically added). You should look into the rma.mv() function, which provides full control over the random effects that can added. See here for the documentation of the function:

https://wviechtb.github.io/metafor/reference/rma.mv.html

and the links therein for examples.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.