Skip to content
Prev 2855 / 5632 Next

[R-meta] Question about my Effect Size Calculation

Dear Sera,

Arguments sd1i and sd2i are really for the SDs of the raw data, so this isn't quite right.

If I understand you correctly, within each study, you have the means and SDs for the raw data corresponding to 4 conditions that subjects underwent. Let's call these means

m1, m2, m3, and m4

and the SDs

s1, s2, s3, and s4.

You eventually want to compute something like d = ((m1 - m2) - (m3 - m4)) / SD, where SD is some kind of standard deviation, the nature of which is to be determined.

The var-cov matrix of the raw measurements looks like this:

[s1^2       r12*s1*s2 r13*s1*s3 r14*s1*s4]
[r12*s1*s2 s2^2       r23*s2*s3 r24*s2*s4]
[                     s3^2      r34*s3*s4]
[                               s4^2     ]

The problem is that all those correlations are probably unknown, but you seem to assume r12=r34=0.7 and r13=r14=r23=r24=0.6.

Based on this, we know what the mean of the change scores was within the 1-2 and 3-4 conditions, namely:

mean(x1 - x2) = m1 - m2
mean(x3 - x4) = m3 - m4

and we know what the SD of these change scores was, namely:

SDx1x2 = SD(x1 - x2) = sqrt(s1^2 + s2^2 - 2*0.7*s1*s2)
SDx3x4 = SD(x3 - x4) = sqrt(s3^2 + s4^2 - 2*0.7*s3*s4)

So now you have everything to plug this into escalc():

escalc(measure = "SMCC", m1i = m1-m2, m2i = m3-m4, sd1i = SDx1x2, sd2i = SDx3x4, ni = n, ri = 0.6)

You can even do this within a single call to escalc(). Unless I got the variable names screwed up, this would be:

escalc(measure = "SMCC", 
       m1i  = NeutralCritical  - NeutralUnrelated, 
       m2i  = NegativeCritical - NegativeUnrelated,
       sd1i = sqrt(NeutralCriticalSD^2 + NeutralUnrelatedSD^2 - 
                   2*0.7*NeutralCriticalSD*NeutralUnrelatedSD),
       sd2i = sqrt(NegativeCritical^2 + NegativeUnrelated^2 - 
                   2*0.7*NegativeCritical*NegativeUnrelated),
       ni   = `Number PP`, 
       ri   = 0.6,
       data = Data)

(use the 'data' argument to make the code more legibile).

This will use the SD of the change scores in the denominator for computing d. Since sd1i and sd2i are SDs of change scores (for x1-x2 and x3-x4) already, this means that the denominator is the SD of (x1-x2)-(x3-x4).

Best,
Wolfgang