Generalized Linear Modelling in Genstat for the Analysis of non-Normal Data

The blog title, Generalized Linear Modelling in Genstat for the Analysis of non-Normal Data, set against a field of ryegrass

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.

A screenshot from the webinar demonstrating GLMs, GLMMs and HGLMs in Genstat

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

Extending linear models to accommodate non-Normal data and random effects: LM → GLM → GLMM → HGLM

Why fit a GLMM as an HGLM?

Picture of Dr. Vanessa Cave
Dr. Vanessa Cave
Dr. Vanessa Cave is an applied statistician interested in the application of statistics to the biosciences, in particular agriculture and ecology, and is a developer of the Genstat statistical software package. She has over 15 years of experience collaborating with scientists, using statistics to solve real-world problems. Vanessa provides expertise on experiment and survey design, data collection and management, statistical analysis, and the interpretation of statistical findings. Her interests include statistical consultancy, mixed models, multivariate methods, statistical ecology, statistical graphics and data visualisation, and the statistical challenges related to digital agriculture. Vanessa is a past President of both the Australasian Region of the International Biometric Society and the New Zealand Statistical Association, on the Editorial Board of The New Zealand Veterinary Journal and an honorary academic at the University of Auckland. She has a PhD in statistics from the University of St Andrew.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Related articles

How much of the variation in your field trial comes from the treatments, and how much comes from...
What should you do when count data are more variable than your model expects? Vanessa Cave and David...
Precision breeding can deliver scientifically impressive traits, but practical value depends on more than technical success. Owen McIntosh...