Skip to content
Prev 350235 / 398506 Next

Metafor - rma.mv function - variance components

Thank you for your reaction, it worked.
However, I'm wondering if this is the right way to test whether there is significant variation on one of the two levels. The results of the anova tests do not correspond to the results of the Z-test in metaSEM. (In metaSEM only one of the variances is significant, but when I use the anova test in metafor, both variances are significant). But maybe I made a mistake. This is my syntax:
model2 <- rma.mv(y, v, random = list(~ 1 | y, ~ 1 | ID), data=dat)
model3 <- rma.mv(y, v, random = list(~ 1 | y, ~ 1 | ID), sigma2=c(NA,0), data=dat)
model4 <- rma.mv(y, v, random = list(~ 1 | y, ~ 1 | ID), sigma2=c(0,NA), data=dat)
anova(model2,model3)
anova(model2,model4)

Is it possible to receive the standard errors of the variances in metafor (and do a Z-test)?