Skip to content
Prev 3945 / 20628 Next

MCMCglmm troubles

Hi Mike,

Sorry for the delay on this.  I'm not sure you want "multinomial3" as  
your family given that the three response variables are normally  
distributed. Specifying family=rep("gaussian", 3) would be more  
appropriate.  You will still get an error message because the default   
residual term is ~units which specifies a residual for each row of the  
response. For univariate models this is equivalent to IID residuals.  
For multi-response models it is more usual to allow different residual  
variances for each response, and often residual covariances between  
responses. rcov=~idh(trait):units fits different variances across  
responses (trait)  but sets the covariances to zero. rcov=  
~us(trait):units  estimates the covariances too. There are other less  
general possibilities too (see CourseNotes) which may be usefull. For  
example  rcov=~trait:units fits a common variance across responses and  
fixes the covariances to zero.

Having random=~sid also assumes that each sid effect is identical  
across responses so you may want to relax this assumption as above.

Cheers,

Jarrod
On 17 Jun 2010, at 13:43, Mike Lawrence wrote: