What is Treatment Structure?
Often treatments have an underlying structure. For example, the levels of the treatment may be ordered, say representing increasing amounts of fertiliser.

Alternatively, the treatment levels may have a factorial structure. That is, consist of combinations of two or more factors. For instance, the treatments could involve two herbicide products (A and B) tested on four thistle species (Californian, Scotch, Nodding, and Winged). This is an example of a 2×4 factorial structure, resulting in 8 unique treatment combinations.

More complex treatment structures also exist. Two other common examples include:
- Factorial designs in which one or more treatment factors have ordered levels. For example, a 3×5 factorial structure might involve three rubber products (I, II, and III) tested at five increasing temperature levels (−50°C, −40°C, −30°C, −20°C, −10°C).

2. Factorial designs with an added control. For example, a 2×2 factorial structure might involve two insecticides (T1 and T2) applied at two droplet sizes (small and large), with an additional control treatment where no insecticide is applied.

Why is it Important to Include Treatment Structure in Your Model?
Understanding and reflecting the treatment structure in your analysis is important as it determines how your data should be analysed and what conclusions can be drawn. By incorporating the treatment structure into your analysis, you gain more nuanced and meaningful insights.
Let’s explore this further using the examples above. For simplicity, we’ll use ANOVA to demonstrate the key ideas, though the same principles apply across other modelling frameworks, including linear mixed models.
Treatment with ordered levels
Example: A treatment involving five ordered levels of fertiliser.
When the levels of a treatment represent increasing amounts of a substance or other intervention, it is often more informative to assess the trend across those levels rather than treat them as unrelated categories. This can be done using polynomial contrasts.
Below are the results from two ANOVAs. In the first, only the treatment term has been included. In the second, the ANOVA has been extended to include two polynomial contrasts (a linear contrast and a quadratic contrast), allowing us to examine whether there is a linear or curved (quadratic) relationship between the fertiliser levels and the response.
ANOVA on Treatment

ANOVA on Treatment with Polynomial Contrasts

While both ANOVAs indicate statistically significant differences among the fertiliser treatment means, the second analysis also assesses the trend across the fertiliser levels.
In this enhanced ANOVA, the total sum of squares for fertiliser is partitioned into three components:
- The variation explained by a linear trend in the response variable with increasing fertiliser (line Lin),
- The additional variation explained by a quadratic trend (line Quad), and
- The remaining variation not captured by either trend (line Deviations).
This analysis provides strong evidence of a linear relationship between the response and fertiliser (p-value < 0.001), but no statistically significant evidence of curvature, as indicated by the non-significant quadratic contrast (p-value = 0.446). Thus, we can conclude that the mean response increases approximately linearly with increasing fertiliser levels—a far more useful conclusion than simply knowing that treatment means differ.
Note: In the example above, the treatment levels (0, 10, 20, 20, 40 kg/ha) are evenly spaced. However, this may not always be the case. For instance, the levels might be 0, 10, 20, 40, and 60 kg/ha. In Genstat, when fitting polynomial contrasts with unevenly spaced treatment levels, we simply need to specify the appropriate numeric values for the treatment levels to ensure the contrasts are calculated correctly.

A factorial design
Example: A 2×4 factorial structure, where two herbicide products are tested on four thistle species.
Instead of treating the eight treatment combinations as a single factor with eight levels, we can model the structure using two factors: Product and Species. This approach allows us to examine the main effects of both Product and Species, as well as their interaction. By doing so, we can draw conclusions about the overall impact of each factor and investigate whether these effects are consistent or change depending on the level of the other factor.
Below are the results from two ANOVAs. The first uses a single treatment factor with 8 levels. In the second, the treatment factor has been partitioned into two separate factors: Product and Species. Also shown are the corresponding means plots, with means displayed in ascending order.
ANOVA on Treatment


2-way ANOVA on Product by Species


Notice that although both ANOVAs enable us to conclude that there are statistically significant differences between the treatment means, the second ANOVA provides much more detailed information. For instance, it reveals that, on average, Product A produces a higher response than Product B. However, the size of this difference varies across Species, as indicated by the significant interaction between Product and Species. Furthermore, we can see that interaction is convergent. That is, the difference between Products A and B is smaller for Species with higher mean responses.
Factorial design with ordered levels
Example: 3×5 factorial structure, where three rubber products were tested at five increasing temperature levels.
As demonstrated below, rather than fitting a single treatment factor with 15 levels, a far more insightful analysis is achieved by separating the treatment into its two underlying factors (Product and Temperature) and using polynomial contrasts to explore the relationship between temperature and the response.
ANOVA on Treatment


2-way ANOVA on Product by Temperature with Polynomial Contrasts


In the enhanced analysis, which reflects both the factorial treatment structure and the ordered levels of Temperature, we can draw conclusions not only about the main effects of Product and Temperature, but also about their interaction and the trend across temperature levels.
In contrast to the initial ANOVA, which only indicates that differences exist among the treatment means, this more detailed analysis reveals that these differences are primarily driven by the main effects of Product and Temperature. Notably, there is no statistical evidence of a Product × Temperature interaction (p-value = 0.471), and the effect of Temperature follows a significant quadratic trend (p-value < 0.001).
Factorial design plus control
Example: A 2×2 factorial structure, where two insecticides are each applied at two droplet sizes, with a no insecticide control treatment.
The key advantage of including a control treatment alongside the factorial treatment structure is that it enables comparisons against a baseline – but only if this structure is properly reflected in the analysis.
To fit this structure, we need to define a factor (let’s call it Treated) that indicates whether insecticide was applied or not. The factorial structure of Insecticide by Droplet is nested within this factor.

In Genstat, the above treatment structure is specified as:
Treated / (Insecticide * Droplet)
which expands to:
Treated + Treated.Insecticide + Treated.Droplet + Treated.Insecticide.Droplet
And here’s what each term represents…
- Treated: The overall effect of applying any insecticide at either droplet size (i.e., the comparison between treated and control units).
Given some insecticide was applied:
- Treated.Insecticide: The comparison between the two insecticides, averaged over droplet sizes.
- Treated.Droplet: The comparison between the two droplet sizes, averaged over insecticides.
- Treated.Insecticide.Droplet: The interaction between Insecticide and Droplet.
Below are the results from two ANOVAs. The first uses a single treatment factor with 5 levels. In the second, the treatment factor has been partitioned into its 2×2 factorial plus control structure.
ANOVA on Treatment

ANOVA on Factorial + Control

Once again, while both ANOVAs show statistically significant differences between the means, the ANOVA that reflects the factorial plus control treatment structure provides more detailed insights. From this analysis, we can clearly see that applying insecticide has a statistically significant effect (p-value = 0.008), with treated units showing a lower average response compared to the control.
Moreover, given that some insecticide was applied, there is no statistical evidence of an interaction between Insecticide and Droplet (p-value = 0.423), nor is there statistical evidence of an overall effect of droplet size (p-value = 0.704). However, there is weak statistical evidence that the mean response differs between the two insecticide products (p-value = 0.096).
Importantly, while the first ANOVA, with a single treatment factor, allows us to test for differences between the treatment means, it provides far less information about where any differences occur. In contrast, the ANOVA that reflects the factorial plus control treatment structure provides a much more meaningful interpretation of the underlying effects and interactions.
Take-home Message
In many experiments, treatments have an underlying structure. Understanding and exploiting this treatment structure leads to more a meaningful analysis.
All the analyses described above are easily performed in Genstat.
Please feel free to contact the team at VSNi to find out more.