Skip to content
Prev 7340 / 20628 Next

BLUPs from MCMCglmm

Eryn McFarlane <mcfarlas at ...> writes:
from these models?


  I *think* you can just look at the $Liab component of the fit,
which as stated is the posterior distribution of the latent variables --
you need to set pl=TRUE.

  This should get you started (although HPDinterval() isn't
behaving sensibly in this case -- not quite sure why not)

 data(PlodiaPO)  
     model1<-MCMCglmm(PO~1, random=~FSfamily, data=PlodiaPO, 
    verbose=FALSE, pl=TRUE)
str(model1$Liab)
mm <- data.frame(m=colMeans(model1$Liab),HPDinterval(model1$Liab))
plot(mm[order(mm$m),"m")