Skip to content

genetic effects and multiple membership in MCMCglmm

1 message · Alexandre Martin

#
Dear Jarrod and esteemed mixed-modelers,

First, thank you again for your help on a previous post.
I am returning on the work on indirect genetic effects I had to set aside
last month and I am trying Jarrod's solution using the function "mm".
I am unfortunately unable to run a model that links mate_1, mate_2, ...,
mate_n to the A inverse. 

I used this dummy (and maybe too simple) data set to test the model:
ped=data.frame(animal=letters[1:11] ,dam= c(NA, NA, NA, gl(2,4,labels =
c("a","c"))), sire=c(NA,NA,NA,rep("b",8)))
dat= data.frame(animal=letters[4:11], pen=c(1,1,2,2,2,1,1,2), Y=rnorm(n =
8,mean = 5,sd =
0.4),m1=c("e","d","g","f","f","d","d","f"),m2=c("i","i","h","h","g","e","e
","g"),m3=c("j","j","k","k","k","j","i","h")), 
where "m" stands for "mate". I have verified that each column had the same
factor levels (following Jarrod's suggestion : factor(mate_1,
levels=all.ids))

Using this dummy dataset in this basic model, mtest <- MCMCglmm(Y~1,
random=~animal+mm(m1+m2+m3),pedigree=ped, data=dat, pr=T),
mm(m1+m2+m3):animal (and other crazy possibilities) led to this error :
"interactions not permitted in str and mm structures". 

Do anyone know how to link the different mates to the Ainverse in order to
obtain blups of m1, m2, ..., m_n.

I would be very grateful for any hint and instruction. 
Many thanks again for your help.

Alexandre

-----Message d'origine-----
De?: Jarrod Hadfield [mailto:j.hadfield at ed.ac.uk] Envoy??: 3 avril 2015
03:51 ??: Jarrod Hadfield Cc?: Alexandre Martin;
'r-sig-mixed-models at r-project.org'
Objet?: Re: [R-sig-ME] design matrices in MCMCglmm

Hi,

Sorry it should have been just:

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

and it is the mate_1, mate_2, ... mate_n that need to be linked to the A
inverse.

Cheers,

Jarrod

Quoting Jarrod Hadfield <j.hadfield at ed.ac.uk> on Fri, 03 Apr 2015
08:16:02 +0100:
2.
Z_cage?
required for forming the MME.
effects ?by hand?.
--
The University of Edinburgh is a charitable body, registered in Scotland,
with registration number SC005336.