Skip to content

MCMCglmm zero-altered

2 messages · Brickhill, Daisy, Jarrod Hadfield

#
Thanks Jarrod. I'm afraid it was a case of copying code without testing it and, as you say, it should have read
prior1ZA = list(R = list(V=diag(1), n=0.002), G = list(G1 = list(V=diag(1), n=0.002))) without fix=2. I have tried the trait:units model and I get significant traitza terms so I would like to use the zapoisson rather than the overdispersed poisson.
I suppose what I am asking is can I now go on to use my more complex model with rcov  = ~ idh(trait):units?
Thanks for your help.

-----Original Message-----
From: Jarrod Hadfield [mailto:j.hadfield at ed.ac.uk]
Sent: 31 July 2012 18:53
To: Brickhill, Daisy
Cc: r-sig-mixed-models at r-project.org
Subject: Re: [R-sig-ME] MCMCglmm zero-altered

Hi,

To use a ZAP model to test whether there is any zero inflation or deflation effects you want to hold the parameters constant across the Poisson and zero-altered part and compare them to a model in which they vary.

For the random effects this comparison would be random=~colony versus something more complex (idh(trait):colony or us(trait):colony). For the fixed effects you want to compare ~1 versus ~trait and
percent.grass2 versus trait:percent.grass2 etc.

  For the overdispersion term MCMCglmm will not allow you to have the same "residual" for both parts, but ~trait:units allows the "residuals" for both parts to have the same distribution (although
information regarding its variance only comes from the Poisson part).
I believe this still allows valid testing of whether there is any zero-alteration or not (but as always, could be wrong). In the trait:units model you do NOT want to fix the variance: in your second prior you had fix=2 despite estimating a single variance(V=diag(1)) so it was probably ignored anyway.  I thought I had implemented MCMCglmm so it would generate an error if fix>nrow(V) - did you not get this?

Cheers,

Jarrod




Quoting "Brickhill, Daisy" <r01db11 at abdn.ac.uk> on Tue, 31 Jul 2012
16:18:50 +0100:
--
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.




The University of Aberdeen is a charity registered in Scotland, No SC013683.
#
Hi,

Then I think your first model is appropriate, although you may still  
want to simplify by having some terms constant over the two processes.

Cheers,

Jarrod


Quoting "Brickhill, Daisy" <r01db11 at abdn.ac.uk> on Wed, 1 Aug 2012  
09:18:14 +0100: