Skip to content
Prev 9664 / 20628 Next

multiple nested random factors

Amanda Adams <aadams26 at ...> writes:
It's still not entirely clear to me from this description how
your data are structured.  You have an average of about 249/12 ~ 21
observations per night, so I'm going to assume you have 6 detectors
*at each site*.  Detector will be nested in site (because it doesn't
make any sense to analyze what happens at "detector number 1" unless
the detectors are somehow arranged so that the set of (d1:site1,
d1:site2, d1:site3, ... has something in common).  You *may* want
a night:site interaction (if you have enough data), but in principle
you also want a site factor (probably fixed, since there are only
three levels) and a night factor.  This would be

  ~ height + f.Site + (1|f.Night/f.Site) + (1|f.Site:f.Detector)

  It is quite likely that you will find some of these variance
components estimated as zero ...
This makes no sense (sorry).  Poisson models must have a response
variable that is a raw count value (integer).  How do you know the
data are overdispersed before you fit a model ???  (Although I do see
that you have widely varying values in your 'Calls' variable, so
you may be right ...)

  For various ways of handling overdispersion in GLMMs see
http://glmm.wikidot.com/faq

  I don't know if it's helpful, but Bolker et al. 2009 _Trends
in Ecology and Evolution_ might be a citeable source for GLMMs.
It doesn't really say anything specific about Poisson variables
and why a Poisson model doesn't include a residual variance; for
that you should probably cite (after reading!) a basic book
on generalized linear models.
By the way, you said you have three sites, but the data have four
levels for f.Site?  Did you drop one site from the data and not
use droplevels() ?