Skip to content
Prev 311357 / 398513 Next

Help: Meta-analysis with metacor

There are multiple issues here. First of all, you should simplify your code to:

metacor(cor, n, title="title", complab="comparison", outclab="outcome")

The rest of your call to metacor() is just using the defaults, so no need to repeat all of that in your call and apparently one of these arguments is causing some problems.

Second, your vector of "correlations" (cor) includes values below -1, which is impossible if these are supposed to be Pearson product-moment correlation coefficients. 

Finally, note that the sampling variance of an r-to-z transformed correlation is calculated with 1/(n-3), so you get division by zero when n=3. As far as I can tell, metacor() will handle this by setting the weight for these values to 0. It is certainly unusual to meta-analyze correlations, where some of those correlations are based on only 3 observations.

Best,

Wolfgang

--   
Wolfgang Viechtbauer, Ph.D., Statistician   
Department of Psychiatry and Psychology   
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