Skip to content
Prev 2524 / 5636 Next

[R-meta] Meta-analytical test of mediation model including dependent tests - looking to resolve metafor issue or find alternative approach

Dear Lukas,

The problem with making modeling decisions based on the data is that it changes the statistical properties of estimators and corresponding sampling errors in unknown ways, so ideally we should avoid these kind of data-dependent decisions. At the same time, not modeling the heteroscedasticity when the data suggest so also doesn't seem like a good strategy.

As for the alternative approach: Let's say you are interested in the correlation between constructs A and B but a particular study measures construct A in two different ways, with measures A1 and A2. Then there are correlations in total, namely r(A1,A2), r(A1,B), and r(A2,B). With rcalc(), you can construct the corresponding 3x3 var-cov matrix of these 3 correlations (V). For the actual meta-analyis, the study would then be coded as:

study cor      mod      r
-------------------------
1     r_A1_A2  r_other  .
1     r_A1_B   r_AB     .
1     r_A2_B   r_AB     .

Actually, variable 'cor' is irrelevant here, since 'mod' is the moderator of interest here. By coding the second and third row as r_AB, the model will automatically pool the two correlations (while keeping the dependency between the three correlations into consideration via the var-cov matrix V).

Moreover, one could even consider leaving out row 1, since you are interested in the A-B correlation. So, we are then left with:

study cor      mod      r
-------------------------
1     r_A1_B   r_AB     .
1     r_A2_B   r_AB     .

and from V we just keep rows/columns 2-3. However, you need to start with all three correlations, because cov(r_A1_B, r_A2_B) depends on r_A1_A2.

Now, 'mod' is also irrelevant, since it is a constant. So, the model will just pool the correlations -- which are all reflections of the A-B correlation -- while taking the dependency in multiple estimates of this correlation from the same study into consideration.

Best,
Wolfgang