Skip to content

fitting a distribution to zero-inflated catch per unit effort mixed model

2 messages · Karla Letto, Ben Bolker

#
Karla Letto <karla.letto at ...> writes:
Practically speaking you probably can't use cycle as a random
effect; you can include cycle as a fixed effect (specifying the
difference between first & second visits), and possibly
nesting it within site as a random effect (if you have more than
one observation per site/sample combination).

  What is the total size (number of observations) in your data set?
[snip]
This is a good way to do it, but you need to incorporate the
LOG of effort.  You may also need to account for overdispersion
and/or zero-inflation; the former via incorporating an observation-level
random effect (in glmer, glmmadmb, or MCMCglmm) or negative binomial
distribution (in glmmadmb), the latter (if necessary) via zero-inflation
or hurdle models (in glmmadmb or MCMCglmm).

 [snip snip snip]
What are you using to assess homogeneity of variance and normality?
Normality of residuals can only be expected approximately (and in the case of
large mean counts) in this case.

   I would start off this way:

mydata$obs <- factor(seq(nrow(mydata)))
glmer(catch~line+habitat+type+cycle+(1|site/cycle)+(1|obs)+
  offset(log(effort)),family=poisson, data=mydata)

You can use the simulate() method to simulate data sets, count
the proportion of zeros expected, and see if your observed 
proportion of zeros is off ...