Skip to content
Prev 3230 / 5632 Next

[R-meta] Coding Longitudinal Studies

Yes, if the codes don't represent the same thing (e.g., treat == 1 in
study 1 isn't the same thing as treat == 1 in study 2), then you can
keep treat, cohort etc. in the random-part if needed, but not in the
fixed part of the model.

Also, if, say the codes for treat across the studies represent the
same thing, then, one may get more precise (depending on how
correlated the levels are and how varied they are across the studies)
average effects for treatment levels, if they add correlated random
effects (and Some_V_matrix) for the treatment levels:

rma.mv(yi ~ treat , V = Some_V_matrix, random =  ~ treat | study, ...)
with a struct = "UN", "HCS", or "CS".

As I said, there are many possibilities to think about in the absence
of data and research questions.

BTW, where I gave a few examples of simpler models, the middle model
seems to be a copy of the first one. Here is what I intended to
include there:

rma.mv(yi, V = Some_V_matrix, random =  list(~ time | study, ~1|
interaction(study, cohort, treat, time)), struct = "HAR")

Best,
Reza
On Sat, Sep 11, 2021 at 11:00 PM Luke Martinez <martinezlukerm at gmail.com> wrote: