Skip to content
Prev 3025 / 5632 Next

[R-meta] Adding random effect to SCE models

Hi Farzad,

It's definitely possible to add further levels of random effects within
each subgroup. (We didn't give examples of this in the paper due to space
constraints.)

I think the specification that you wrote in your original email could work
with variety of different structures for the second set of random effects.
For instance, struct = "CS" would imply a simple random effect for each
study-category combination, struct = "HCS" would allow differing variance
by time-point, or struct = "AR" would allow for an auto-regressive
structure per time-point. The one drawback of these specifications is that
the variance of the random effects is assumed to be constant across
moderator categories. That might or might not be reasonable--it's a
question of empirical fit.

Alternately, you could try something along the lines of
random = list(~ mod_cat | study, ~ mod_cat | interaction(study,time)),
struct = c("DIAG","DIAG")
which will give you a time-point specific random effect with a unique
variance component for every level of mod_cat.

Alternately, you could just leave it as the SCE model. You wrote: "we want
to encode the assumption that the true effect sizes at different time
points are correlated if they come from the study and the same category."
The regular SCE model (using random = ~ mod_cat | study, struct = "DIAG")
already encodes that assumption. It implies that true effect sizes at
different time points are *fully* correlated if they come from the same
study and the same category, due to there being just one random effect per
study-category.

Kind Regards,
James
On Wed, Jul 21, 2021 at 3:42 PM Farzad Keyhan <f.keyhaniha at gmail.com> wrote: