[R-meta] multilevel meta-analysis using metafor

brauldeq brauldeq at hu-berlin.de
Wed Aug 30 11:54:11 CEST 2017


Dear fellow researchers,

I am currently conducting a meta-analysis for my master's thesis in 
psychology. For that matter, I stumbled upon your metafor package which 
has been very helpful for me!

However, I have some trouble implementing the right R code for my 
analysis. I am running a meta-analysis on the relationship between 
self-efficacy and scholastic achievement (using correlation 
coefficients). It will be analyzed using multilevel analysis using a 
random-effects model because I have several articles with multiple 
effect sizes which I want to include individually controlling for their 
dependency. Therefore, I have (dependant) effect sizes that are nested 
within (independent) samples.
Each independent sample is coding with an unique number in the variable 
"sample_nr" and each dependant effect size for a certain sample is coded 
with an unique number in "effect_nr". So, a sample with multiple effect 
sizes would be coded with an identical "sample_nr" and different 
"effect_nr" for each effect size. My R code is as follows:

rma.mv(yi, vi, random = ~ 1 | sample_nr/effect_nr, data = se_ach)

Is this the right code for my purpose?

Thank you for your advice.

Best regards,
Denise Braul



More information about the R-sig-meta-analysis mailing list