Skip to content
Prev 11014 / 20628 Next

Manipulating matrices from MCMCglmm

Hi Adam,

Try this:

beta<-function(x, dimension=4, response=1){
V<-matrix(x,dimension, dimension)
solve(V[-response,-response],V[-response,response])
}

post.beta<-apply(m1$VCV[,1:16] 1, beta)

# you have to change 1:16 to the appropriate indices.

This has also been done in:  Phillimore, A. B., S. St?lhandske, R. J.  
Smithers, and R. Bernard. 2012. Dissecting the contributions of  
plasticity and local adaptation to the phenology of a butterfly and  
its host plants. American Naturalist 180: 655-670

Cheers,

Jarrod

Quoting Adam Hayward <a.hayward at sheffield.ac.uk> on Fri, 1 Nov 2013  
15:47:02 +0000: