Page 1 of 1

Covariance between random effects in lme4/glmmTMB

Posted: Mon Nov 27, 2023 4:30 pm
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!