Skip to content
Prev 2876 / 5632 Next

[R-meta] Random slopes in rma.mv

I think you meant: list(~ 1 | ID2/ID1, ~ X -1 | ID2)

You could do that too, but this implies that the random intercepts for ID2 are assumed to be uncorrelated with the random slopes for ID2. With

list(~ 1 | interaction(ID2,ID1), ~ X | ID2)

the random intercepts and slopes are allowed to be correlated.
If you want to know if you could do something like random = list(~ x | ID2, ~ x | ID3), then yes, in principle that is possible. I don't know whether this makes sense in the context of your data or whether the parameters of such a model are identifiable (profile() can help to determine the latter).