Skip to content
Prev 350236 / 398506 Next

Metafor - rma.mv function - variance components

This is correct (for getting likelihood ratio tests). Manually setting a component to 0 is also the same as just leaving out the corresponding random effect. So, you could also do:

model2 <- rma.mv(y, v, random = list(~ 1 | y, ~ 1 | ID), data=dat)
model3 <- rma.mv(y, v, random = ~ 1 | y, data=dat)
model4 <- rma.mv(y, v, random = ~ 1 | ID, data=dat)
anova(model2,model3)
anova(model2,model4)

That should give you identical results.

At the moment, rma.mv() does not compute SEs for the variance components. It may at some point in the future, but it is unclear what one would do with those SEs. Wald-type tests (z-tests) should generally be avoided when testing variance components.

Best,
Wolfgang

--    
Wolfgang Viechtbauer, Ph.D., Statistician    
Department of Psychiatry and Neuropsychology    
School for Mental Health and Neuroscience    
Faculty of Health, Medicine, and Life Sciences    
Maastricht University, P.O. Box 616 (VIJV1)    
6200 MD Maastricht, The Netherlands    
+31 (43) 388-4170 | http://www.wvbauer.com