Skip to content

[R-meta] Extractable objects from an rma.mv() objects

3 messages · Wolfgang Viechtbauer, Jack Solomon

#
Hello Meta-Analysis Experts,

I'm exploring some apparently undocumented, extractable objects from fitted
metafor::rma.mv() models.

Specifically, I was wondering what do the following undocumented boolean
objects denote (withS, withG, withH, and withR)?

Much appreciated,
Jack

library(metafor)
dat <- dat.konstantopoulos2011

m1 <- rma.mv(yi, vi, random = ~ 1 | district/study, data = dat)

  
  
#
Hi Jack,

withS indicates whether there are any '~ 1 | id' random effects. withG and withH are for the presence of a first and second "~ var1 | var2' random effect. withR indicates whether a known correlation matrix has been specified for some '~ 1 | id' random effect.

Ultimately, you can always look at the source code directly:

https://github.com/wviechtb/metafor/blob/master/R/rma.mv.r

Best,
Wolfgang
#
Very informative, thanks very much Wolfgang!

Kind regards,
Jack

On Wed, Aug 18, 2021 at 7:13 AM Viechtbauer, Wolfgang (SP) <
wolfgang.viechtbauer at maastrichtuniversity.nl> wrote: