Skip to content
Prev 10492 / 20628 Next

Parameter estimates and covariance structure in MCMCglmm

Hi Adam,


Q1. The way the negative slopes are simulated are not consistent with  
the model so you shouldn't expect a particularly good fit. The way  
they are generated seems so idiosyncratic I think it would be hard to  
come up with a general model that would better predict the response in  
bands 6, 8 and 17.

Your need to be careful about claiming DIC supports slope variation.   
First DIC is focussed at the wrong level for most scientific  
inference, so it cannot be generally advocated (unless it can be  
focused at a lower level, which is easy for Gaussian data but not  
otherwise). Second, the test is also testing whether the band variance  
is equal in the two treatments. By simulation they are equal (before  
the manipulations of bands 6,8, and 17), but the residual variances  
are not (they are 25 and 49). The us(treatment):band is capturing some  
of the differences in residual variance (hence my advice to always fit  
residual structures of the form idh(treatment):units in these types of  
model):


prior1b<-list(R=list(V=diag(2), nu=0.002), G=list(G1=list(V=diag(2),  
nu=1.002)))

mcmc.test1b <- MCMCglmm(y~treatment, random = ~us(treatment):band,  
rcov=~idh(treatment):units, data=test, prior=prior1b)


prior2b<-list(R=list(V=diag(2), nu=0.002), G=list(G1=list(V=1, nu=0.002)))


mcmc.test2b <- MCMCglmm(y~treatment, random =  
~band,rcov=~idh(treatment):units, data=test, prior=prior2b)

Q2: you cannot using MCMCglmm, you would need to use  
double-hierarchical models. You would also need a great deal of data.

Q3: you could just apply your function for the conditional variance to  
the posterior and look at the credible intervals. It is not possible  
to fix arbitrary elements of the covariance matrix to zero in  
MCMCglmm. You can do that in asreml if you wish, but I believe the  
covariance matrix estimate may not be positive definite if you do  
(i.e. your conditional variance may be negative).

Cheers,

Jarrod

Quoting Adam Lendvai <adamlendvai at freemail.hu> on Mon, 12 Aug 2013  
18:47:49 -0400: