How it works...
Poisson models are appropriate when dealing with count data (non-negative integer data), which is usually severely skewed. A consequence of using Poisson distributions (and potentially, a problem) is that the mean and variance of the distribution are governed by the same parameter (lambda). Therefore, in a Poisson model, the residuals should always be checked, and special care needs to be taken with the variance/mean of them. If the variance is increasing as the mean increases, we should adjust our model and use the negative binomial distribution, which is a generalization of the Poisson distribution with an extra parameter to control the variance.
On a conceptual level, all the regular lmer/lme4 functions that can be used ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access