Skip to content
Prev 13174 / 20628 Next

design matrices in MCMCglmm

Hi,

Have columns mate_1, mate_2 ... mate_n where n is group size. In each  
column have the identity of each cage mate (order does not matter).  
Make sure each column has the same factor levels even if they don't  
appear. For example,

factor(mate_1, levels=all.ids)

where all.ids are all possible cage mates. Then fit:

random=~mm(mate_1+mate_2+...mate_n):animal

where animal is linked to the pedigree through the ginverse argument.

Cheers,

Jarrod



Quoting Alexandre Martin <alexandre.m.martin at gmail.com> on Tue, 31 Mar  
2015 10:07:34 -0400: