Skip to content
Prev 540 / 5632 Next

[R-meta] Collapsing a between subject factor

Dear Oliver

You do not say whether the sample sizes are equal or not so I give the 
procedure for unequal.

For the means you need to weight by sample size

(n_1 * m_1 + n_2 * m_2) / (n_1 + n_2)

where n are sample sizes and m means

For variance you need

(n_1 * (m_1^2 + v_1) + n_2 * (m_2^2 + v_2) / (n_1 + n_2)) - m_c

where v are variances and m_c is the combined mean you got above.

I suggest double checking this with a few examples in case of 
transcription errors at my end or yours.

Michael
On 28/01/2018 21:49, Oliver Clark wrote: