2
$\begingroup$

Is there some function like ranef() or some other approach to extract the random effects from a multivariate model using metafor::rma.mv function? Here's the example provided by the oficial website of the package.

dat <- get(data(dat.berkey1998))
V <- lapply(split(dat[,c("v1i", "v2i")], dat$trial), as.matrix)
V <- bldiag(V)
res <- rma.mv(yi, V, mods = ~ outcome - 1, random = ~ outcome | trial, struct="UN", data=dat)
res
$\endgroup$

1 Answer 1

2
$\begingroup$

Nope, haven't gotten around to implementing ranef() and blup() for models fitted with rma.mv() yet. It's on my to-do list, but I cannot say when I will get this done.

Update: The ranef() function now (as of version 2.0-0) works for rma.mv objects (not yet blup()).

$\endgroup$
2
  • $\begingroup$ Any updates as of 7/5/2017? $\endgroup$
    – RMurphy
    Commented Jul 6, 2017 at 1:27
  • $\begingroup$ @RMurphy See updated answer. $\endgroup$
    – Wolfgang
    Commented Jul 6, 2017 at 7:13

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