From Blocks to Spatial Models: Analysing Wheat Variety Trials with ASReml-R

The blog title "From Blocks to Spatial Models: Analysing Wheat Variety Trials with ASReml-R" set across a background of wheat

In this blog, we explore how breeders can progressively improve the accuracy of field trial analysis using ASReml-R and move from basic block designs to spatially informed models. 

Accurately estimating genetic effects in field trials depends on selecting an appropriate statistical model. A trial layout may appear simple, but environmental variation, across rows, columns can easily obscure the true signal breeders are looking for.

Using ASReml-R, we demonstrate how to build a linear mixed model for field trial data, starting with a basic model and progressively refining it through the addition of covariates, spatial effects, and measurement error. This progression, drawn from the ASReml-R Cookbook, shows how increasingly realistic models lead to more precise estimates of genetic effects and clearer selection decisions.

Step 1 – Randomised Complete Block Design (RCBD)

The starting point for many trials is the Randomized Complete Block Design (RCBD), where each genotype appears once in each block. Blocks help account for large-scale environmental differences such as fertility gradients or irrigation variation.

In ASReml-R, this can be fitted with a simple linear mixed model:

model1 <- asreml(
fixed = response ~ block,  # block (a factor) as fixed effect
random = ~ genotype,      # genotype (a factor) as random effect
residual = ~ units,       # independent residuals
data = mydata
)

This model partitions the variation in the response (e.g., yield) into genetic and environmental (i.e., block) components. From it, breeders can estimate:

  • Variance components for genotype and residual error
  • Heritability, indicating how strongly yield is controlled by genetics
  • BLUPs (Best Linear Unbiased Predictors) for ranking genotypes

Step 2 – Adding covariates to explain systematic trends

However, even after blocking, residual variation may still follow predictable patterns. Gradients in fertility, slope, or moisture can influence the response across a trial. By including relevant covariates, we can account for this systematic variation and obtain more precise estimates of the genetic effects.

For example, if the trial is arranged in a regular grid, we can model linear trends across both the row and column directions by including the plot row and column positions as covariates:

model2 <- asreml(
fixed = response ~ block +                            # block (a factor) as fixed effect
rowNum + colNum,        # fixed row + column positions as covariates
random = ~ genotype,                               # genotype (a factor) as random effect
residual = ~ units,                                 # independent residuals
data = mydata
)

Including relevant covariates improves model fit and typically reduces the residual variance. Breeders can compare models using criteria such as AIC or likelihood ratio tests to confirm that the covariates meaningfully explain variation.

However, row and column covariates can only capture simple, directional trends. In many trials, spatial variation is more complex and irregular. This is where spatial models become essential.

Step 3 – Accounting for spatial correlation

Neighbouring plots in a field often resemble each other more than distant ones. This spatial autocorrelation arises from things such as soil fertility, water distribution, or management effects that vary across the field. If ignored, it inflates residual variance and biases genetic estimates.

ASReml-R allows breeders to model correlation in the row and column directions using various correlation structures, such as the autoregressive model of order 1 (AR1). You can learn more about commonly used correlation structures for modelling field trial data here.

In ASReml-R, a spatial model with AR1 correlation in both the row and column directions can be fitted using:

model3 <- asreml(
fixed = response ~ block,                  # block (a factor) as fixed effect
random = ~ genotype,                      # genotype (a factor) as random effect
residual = ~ ar1v(row):ar1(col),       # AR1 ⊗ AR1 separable correlation model
data = mydata
)

Note: It is important to specify the variance structure explicitly. In this example, ar1v(row):ar1(col) define an autoregressive correlation model in the row and column directions, with the variance attached to the first term. Alternatively, using ar1(row):ar1v(col) would yield the same fitted model, but the variance would be associated with the column direction instead. Also note that both row and col are factors in the model.

The AR1 terms estimate how strongly plots are correlated along rows and columns. Fitting this model typically reduces residual variance and increases heritability, indicating improved separation of genetic and environmental effects.

Model diagnostics, such as variograms, can help visualise spatial patterns and assess whether the chosen correlation structure adequately captures field heterogeneity.

Step 4 – Accounting for spatial correlation + measurement error


In many trials, the observed variability between plots may still exceed what can be explained by the spatial model alone. This additional variability, often called measurement error or the nugget effect, can be incorporated by including a random term that indexes the individual observational units. Accounting for this extra source of variation ensures that residual variance is correctly estimated and improves the accuracy of genetic effect estimates.

model4 <- asreml(
fixed = response ~ block,               # block (a factor) as fixed effect
random = ~ genotype + units,         # genotype and measurement error as random effects
residual = ~ ar1v(row):ar1(col),     # AR1 ⊗ AR1 separable correlation model
data = mydata
)

Comparing Model Progression

Model (Recipe)Key refinementWhat it controls
Model 1RCBDBlock effectsLarge-scale environmental differences
Model 2RCBD + CovariatesDirectional gradients Systematic field trends
Model 3RCBD + Spatial Correlation among neighbouring plotsFine-scale spatial heterogeneity
Model 4RCBD + Spatial + Measurement ErrorAdditional unstructured plot-level variation (nugget)Fine-scale heterogeneity + measurement error

Each stage adds realism to the model. By gradually incorporating more detailed representations of the trial environment, breeders can ensure that the genetic signal reflects true biological differences rather than artefacts of the field layout.

Practical implications for breeding programmes

  • Improved accuracy of BLUPs: Correcting spatial effects refines genotype rankings.
  • Better use of field data: Fewer plots are lost to “noise,” increasing information gain per trial.
  • More confident selection: Enhanced heritability estimates allow clearer genetic comparisons and greater selection intensity.

Why ASReml-R suits this workflow

ASReml-R is purpose-built for quantitative genetics and breeding analysis. It allows users to:

  • Fit and compare complex mixed models efficiently
  • Model fixed, random, and residual terms flexibly
  • Incorporate spatial, temporal, and genomic structures within the same framework
  • Scale analyses to multi-environment datasets and integrate with downstream selection tools

By starting simple and refining systematically, breeders can capture the true genetic signal behind yield differences, ensuring more informed selection and better genetic progress.

Need support building spatial models or analysing complex trials?


Speak with our statistical genetics consultants to see how VSNi can support your breeding programme. 

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...