Hostname: page-component-74656f9884-2dmjx Total loading time: 0 Render date: 2026-11-09T00:21:39.600Z Has data issue: false hasContentIssue false

Generating a combined analysis using linear mixed models to account for pre-history effects when a treatment factor comprises fixed and random levels

Published online by Cambridge University Press:  01 April 2026

Lyson Chaka*
Affiliation:
Department of Statistics, Faculty of Natural and Agricultural Sciences, University of Pretoria , South Africa
Peter Njuho
Affiliation:
Research and Innovation Office, University of Zululand, South Africa
Hans-Peter Piepho
Affiliation:
Biostatistics Unit, Institute of Crop Science, Universität Hohenheim, Germany
Jean-Claude Malela-Majika
Affiliation:
Department of Statistics, Faculty of Natural and Agricultural Sciences, University of Pretoria , South Africa
*
Corresponding author: Lyson Chaka; Email: lyson.chaka@up.ac.za
Rights & Permissions [Opens in a new window]

Abstract

Experimental designs involving factors with a mix of fixed and random levels have been explored by few. These designs are useful when comparing a set of new treatments (fixed levels) to a population of established treatments (random levels). This approach enables partitioning variability and testing of both fixed and random effects, leading to improved estimates and more reliable inference. However, combining analyses of variance from partitioned data poses challenges, including data rearrangement, methodology, and coding complexities. Existing statistical software does not directly support combined analyses for such designs. The current study provides guidelines for conducting combined analysis of variance in linear mixed-effects models where factors have both fixed and random levels. The approach utilizes SAS PROC GLIMMIX and tools from the Comprehensive R Archive Network to compile the combined analysis of variance, followed by multiple comparisons of treatment means. The procedure is demonstrated using treatment structures in a completely randomized design, split-split-plot design, and repeated-measures design. The method can be extended to other experimental designs. This framework addresses a critical gap in existing literature by providing a practical and readily applicable analytical tool that enables integrated analysis across all factor levels within a single linear mixed-model structure, while accounting for pre-history effects associated with prior management practices in complex experimental systems.

Information

Type
Crops and Soils Research Paper
Copyright
© The Author(s), 2026. Published by Cambridge University Press
Figure 0

Figure 1. Workflow of the statistical analysis.

Figure 1

Table 1. Barley yield data simulation design

Figure 2

Table 2. Combined ANOVA for the barley on-farm experiment

Figure 3

Table 3. Pairwise comparisons for marginal means of group A (Tukey-adjusted)

Figure 4

Table 4. Mean comparisons, letter display (Tukey-adjusted) and variability statistics of group A sliced by group B: Part of the output for group B = B4

Figure 5

Table 5. ANOVA for the full factorial repeated-measures model

Figure 6

Table 6. Comparisons of means of group B.Time sliced at time = 1

Figure 7

Table 7. ANOVA for the reduced split-split-plot model

Figure 8

Table 8. Letter display and mean comparisons for the split-split-plot Experiment. Part of output: group B sliced by group A.group C

Supplementary material: File

Chaka et al. supplementary material 1

Chaka et al. supplementary material
Download Chaka et al. supplementary material 1(File)
File 275.6 KB
Supplementary material: File

Chaka et al. supplementary material 2

Chaka et al. supplementary material
Download Chaka et al. supplementary material 2(File)
File 291.2 KB
Supplementary material: File

Chaka et al. supplementary material 3

Chaka et al. supplementary material
Download Chaka et al. supplementary material 3(File)
File 250.5 KB
Supplementary material: File

Chaka et al. supplementary material 4

Chaka et al. supplementary material
Download Chaka et al. supplementary material 4(File)
File 1.5 MB
Supplementary material: File

Chaka et al. supplementary material 5

Chaka et al. supplementary material
Download Chaka et al. supplementary material 5(File)
File 297.4 KB
Supplementary material: File

Chaka et al. supplementary material 6

Chaka et al. supplementary material
Download Chaka et al. supplementary material 6(File)
File 10.9 MB
Supplementary material: File

Chaka et al. supplementary material 7

Chaka et al. supplementary material
Download Chaka et al. supplementary material 7(File)
File 187 KB
Supplementary material: File

Chaka et al. supplementary material 8

Chaka et al. supplementary material
Download Chaka et al. supplementary material 8(File)
File 128.2 KB