Skip to content
Prev 4736 / 5636 Next

[R-meta] Extracting meta regression elements automatically

Hi Danial,

I should admit that I didn't go through your message in its entirety.
However, I'm hoping that a few simple tips will help you get started
on extracting the quantities that you want from an rma.mv object
(let's call that object *fit*).

Generally, you can obtain the regression table (including the
estimate, se, zval or tval, pval, ci.lb, ci.ub) from an rma.mv object
by using:

coef(summary(fit))

Regarding the 'Test of Moderators' section, you can get the QM results
as follows (looks like you have a typo here):

data.frame(Estimate = fit$QM, Df = fit$QMdf[1], pval = fit$QMp,
row.names = "QM")

If needed, you can get the QE results in a similar fashion:

data.frame(Estimate = fit$QE, Df = nobs.rma(fit), pval = fit$QEp,
row.names = "QE")

For your type of models (additive compound symmetric), you can also
get the estimates of random variance in your true effects at each
level of hierarchy by using:

data.frame(Sigma2 = fit$sigma2, row.names = fit$s.names)

Knowing these quantities should help you shape the output of the model
in your desired format. If you come across programming questions along
the way, you can always consult R programming forums such as:
https://stackoverflow.com/

Kind regards,
Reza



On Sun, Jun 25, 2023 at 4:34?PM Daniel Gucciardi via
R-sig-meta-analysis <r-sig-meta-analysis at r-project.org> wrote: