In the world of statistical analysis, dealing with non-Normal data is a common challenge. Whether you’re working with counts, proportions, or other types of non-Normal data, generalized linear models (GLMs), generalized linear mixed models (GLMMs), and hierarchical generalized linear models (HGLMs) are powerful tools for analyzing it.
This blog post will provide an overview of these modelling techniques and invite you to learn how to fit these models in Genstat, a comprehensive statistical software package.
Generalized Linear Models (GLMs)
GLMs extend linear models to accommodate non-Normal response variables. Instead of assuming a Normal distribution, GLMs allow the response to come from any distribution in the exponential family, such as the Binomial distribution (for proportions) or the Poisson distribution (for counts).
A key feature of a GLM is that its underlying linear model defines a linear predictor. This linear predictor is related to the mean response via a link function, the transformation required to make the model linear. Often, the canonical link function is used, but other link functions can be chosen.
Generalized Linear Mixed Models (GLMMs)
A major limitation of GLMs is that they only cater for one source of random variation: the residual error. In practice, many data sets involve more than one source of random variability. For example, when data are collected from a designed experiment with blocking variables, or when repeated measurements are taken on the same experimental unit (or subject). GLMMs extend GLMs to accommodate for such additional sources of random variation. That is, the linear predictor is extended to include one or more random terms, where the random effects (corresponding to a random term) are assumed to be Normally distributed.
Hierarchical Generalized Linear Models (HGLMs)
HGLMs take GLMMs a step further by allowing the random effects to be non-Normal. For example, the random effects can follow distributions like the Gamma, Beta, or Inverse Gamma. In addition, the random terms can have their own link function. The choice of distribution and link function for the random effects is often guided by the conjugate distribution to the distribution of the response variable, as this approach is mathematically and intuitively appealing.
Fitting GLMs, GLMMs, and HGLMs in Genstat
Genstat offers a comprehensive set of tools for fitting these types of models. The software includes specialised menus for GLMs, GLMMs, and HGLMs, making it easy to specify the response variable, fixed and random models, control the model fitting, and produce the desired output. Genstat also makes it easy to select the canonical link function and specify a conjugate HGLM.

Tutorial: GLMs, GLMMs and HGLMs in Genstat
If you’re interested in learning more about GLMs, GLMMs, and HGLMs, and seeing a demonstration in Genstat, we encourage you to watch this webinar recording available on our YouTube channel: Generalized Linear Modelling in Genstat for the analysis of non-Normal data.
This webinar provides an overview of the theory, plus demonstrates how to fit a Poisson GLM, a Poisson GLMM, and a Poisson HGLM to a ryegrass dataset. The output from these analyses includes tables of means, plots of predicted means, residual diagnostics, and likelihood statistics. Genstat’s ability to analyse censored Poisson count data is also showcased, demonstrating the software’s versatility in handling complex data situations.
Further Reading:
ANOVA, LM, LMM, GLM, GLMM, HGLM? Which statistical method should I use?
Are you linked or transformed? Data transformation vs links in Generalized Linear Models