Covariance between random effects in lme4/glmmTMB

Would you like to see another section added here, post it in the Requests board.
Post Reply
davidnfisher
Posts: 2
Joined: Mon Nov 27, 2023 4:24 pm

Covariance between random effects in lme4/glmmTMB

Post by davidnfisher »

Hi folks,

Does anyone know how to code a covariance between two random effects that use the same set of levels in lme4 or glmmTMB? I would do it in MCMCglmm like this:

random=~str(focal + partner)

while the prior includes G1 as a 2x2 matrix.

Any help appreciated!
Post Reply