Skip to content
Prev 11064 / 20628 Next

Define prior in MCMCglmm

Hi Maria,

random = ~us(1):subj_ID + us(fin_B):subj_ID  is the same as  
idh(1+finB):subj_ID and is not the same as (1 + fin_B|subj_ID) in lmer  
because the idh fixes the covariance between and intercepts and slopes  
to zero.  us(1+finB):subj_ID is equivalent to the lmer code.

Also, a prior of nu=2 (or nu=2.002) could have quite an influence on  
your posterior. V=diag(2) and nu=1.002 for the 2x2 case gives a  
marginal prior on the variances that is equivalent to an inverse gamma  
with shape and scale equal to 0.001. This prior used to be used a lot,  
but has some bad properties when values close to zero have support. I  
often use the parameter expanded prior:

list(V=diag(2), nu=2, alpha.mu=c(0,0), alpha.V=diag(2)*a)

where a is something large.

There is no difference between nu and n.

Cheers,

Jarrod

I meant (1 + fin_B|subj_ID), as indicated in glmer() (lme4 package).
Quoting Maria Paola Bissiri <Maria_Paola.Bissiri at tu-dresden.de> on  
Thu, 14 Nov 2013 15:06:26 +0000: