Skip to content
Prev 8573 / 20628 Next

A zero inflated Poisson model in MCMCglmm

Hi,

Quoting Helen Ward <h.l.ward at qmul.ac.uk> on Wed, 11 Jul 2012 11:58:50 +0100:
I think it is better to diagnose the problem rather than upping nu. In  
this case I think the residual variance of the Poisson process must be  
going to zero under the flat prior? Perhaps the counts are  
under-dispersed with respect to the Poisson, further motivating an  
ordinal model?



model1.1<-MCMCglmm(Toes~trait,random=~us(trait):animal,family="zipoisson",rcov=~idh(trait):units,pedigree=ped,data=data,prior=Prior1,nitt=500000,thin=500,burnin=200000,verbose=FALSE)
IMPORTANT: The residual variance is not identifiable in an ordinal  
model so all the information is coming from the prior. This is OK, but  
I would fix the variance at 1 so as to avoid interpretation  
difficulties (and numerical problems - check the range of the latent  
variables using pl=TRUE).


model2<-MCMCglmm(Toes~1,random=~animal,family="ordinal",pedigree=ped,data=data,prior=prior2,nitt=500000,thin=500,burnin=200000,verbose=FALSE)
Is this calculated as Vanimal/(Vanimal+Vresidual+1)  or  
Vanimal/(Vanimal+Vresidual)?
Is this calculated as Vanimal/(Vanimal+Vresidual+pi^2/3)  or  
Vanimal/(Vanimal+Vresidual)?
Re: autocorrelation. Use parameter expansion and/or run for longer  
(particularly for binary animal models and/or if there is little  
overdispersion)  If the absolute value of the latent variables under  
the logit link exceed 20, or under the probit link exceed 7, then at  
the moment I would consider another program unless the latent  
variables are associated with particular levels of a fixed effect.   
Then flatish priors on the probability scale may overcome the problem.
I think it makes most sense to think about the heritabilities of each  
process separately   - the first as a Poisson trait and the second as  
a threshold (binary) trait.