Skip to content
Prev 10843 / 20628 Next

MCMCglmm random intercept/slope model and credible intervals

Hi,

There is a bug in predict.MCMCglmm for random regression models. I've  
corrected it in the unreleased version, but you can change it easy  
enough:

Change

M[,which(rm.v),]<-0

on L65 to

M[,which(rm.v)]<-0


Also, this model will not give sensible results. You need to use  
something like:

R = list(V = 1, fix=1)

in the prior for the residual variance (it cannot be estimated from  
the data with categorical data)

Also,

G = list(G1 = list(V = diag(2), nu = 6)))

is pretty informative, unless you have a lot of data and replication  
at the right level.

Cheers,

Jarrod


Quoting Maya <maiski at maiski.net> on Mon, 7 Oct 2013 12:52:06 +0000 (UTC):