Skip to content
Prev 2323 / 5636 Next

[R-meta] Question about the metafor package

Dear Safa,

You could just do:

mods = ~ Age_TRT_mean + Age_Control_mean + male_TRT_pc + male_Control_pc

(I think this is what you meant).

Since 'yi' is a standardized mean difference here (i.e., it reflects the difference between the two groups), one could also consider a model that directly relates the size of the group difference to the *difference* in the mean age and the *difference* in the proportion of males in the two groups. That would be:

mods = ~ I(Age_TRT_mean - Age_Control_mean) + I(male_TRT_pc - male_Control_pc)

or you could compute these differences beforehand and then include them in the model.

Best,
Wolfgang