Skip to content

Correlating multiple effect sizes within a study to study-level predictors: metafor package

8 messages · Michael Dewey, Viechtbauer Wolfgang (STAT), Megan Bartlett

2 days later
#
At 23:18 11/07/2014, Megan Bartlett wrote:
metafor questions welcome here, Megan

Wolfgang seems to be off-list so while we wait for the definitive 
answer here are some hints.
I think you need rma.mv for your situation and you need to specify a 
random effect for site.

Try going
?rma.mv
and looking for the section entitled Specifying random effects
  You will need to set up your dataframe with one row per species and 
an indicator variable for site and then use
random = ~ 1 | site

Not tested obviously and Wolfgang may have other suggestions
Michael Dewey
info at aghmed.fsnet.co.uk
http://www.aghmed.fsnet.co.uk/home.html
#
Somehow that initial post slipped under the radar for me ...

Yes, I would give the same suggestion as Michael. Besides random effects for 'site', I would also suggest to add random effects for each estimates (as in a regular random-effects model). So, if you have an 'id' variable that is unique to each observed d-value, you would use:

random = list(~ 1 | site, ~ 1 | id)

with the rma.mv() function. This is in essence the model given by equation (6) in:

Nakagawa, S., & Santos, E. S. A. (2012). Methodological issues and advances in biological meta-analysis. Evolutionary Ecology, 26(5), 1253-1274.

(at the time of publication, this model could not be fitted with metafor, but it can now). Same model is described with a bit more detail in:

Konstantopoulos, S. (2011). Fixed effects and variance components estimation in three-level meta-analysis. Research Synthesis Methods, 2(1), 61-76.

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
1 day later
#
At 23:19 14/07/2014, Megan Bartlett wrote:
Yes, just put it in as a moderator.

I am not sure I fully understand the rest of your question but the 
answer may be that the weights are a property of the individual effect sizes
Michael Dewey
info at aghmed.fsnet.co.uk
http://www.aghmed.fsnet.co.uk/home.html
#
At 17:49 16/07/2014, Megan Bartlett wrote:
No.

Since the climate variable is per study (I assume) you are assuming 
that it has the same effect on each species. If that is not true you 
need to add species as another moderator and then add the interaction 
between climate and species.

The random parameter is saying that each site has its own intercept 
but you are only estimating its variance and each species also has 
its own intercept drawn from another distribution whose variance is 
being estimated.

I think you probably need to get local statistical help now from 
someone who understands the science of what you are doing and the 
statistics of mixed effects models. I am a bit concerned that without 
that knowledge we on the list may end up giving you misleading advice,
Michael Dewey
info at aghmed.fsnet.co.uk
http://www.aghmed.fsnet.co.uk/home.html