Covariance between random effects in lme4/glmmTMB

Would you like to see another section added here, post it in the Requests board.
Forum rules
Hello and welcome to the WAMWiki Forum, a place for open discussion and questions regarding the use of animal models, quantitative genetics and beyond. Before posting, please familiarise yourself with our community and posting guidelines:
1. Remain respectful of other members.
2. If you have a question, please avoid cross posting to multiple boards.
3. Post any suggestions you have for new topics on the Requests board.
These guidelines will likely develop as the forum grows.
Post Reply
davidnfisher
Posts: 1
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