Why You Should Exploit the Structure of Your Treatments

The blog title "Why you should exploit the structure of your treatments" set across a blue bar over an image of thistles

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.

A table showing five ordered treatment levels of fertilizer application rates. Treatment 1 (0 kg/ha) has no measuring cup icons, Treatment 2 (10 kg/ha) has one green measuring cup icon, Treatment 3 (20 kg/ha) has two measuring cup icons, Treatment 4 (30 kg/ha) has three measuring cup icons, and Treatment 5 (40 kg/ha) has four measuring cup icons. The number of measuring cup icons increases proportionally with the fertilizer application rate, visually representing the ordered structure of the treatments.

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.

A 2×4 factorial treatment structure table showing two herbicide products (A and B) tested on four thistle species (Californian, Scotch, Nodding, and Winged), creating 8 unique treatment combinations. Each cell contains a photograph of the corresponding thistle species with purple flowers."

More complex treatment structures also exist. Two other common examples include:

  1. 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).
A 3×5 factorial treatment structure table showing three rubber products (I, II, III) tested at five temperature levels (-50°C, -40°C, -30°C, -20°C, -10°C), creating 15 treatment combinations. Each cell contains blue snowflake icons representing the cold temperatures, with the number of snowflakes decreasing as temperature increases.

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.

A factorial design plus control treatment structure table showing two insecticides (T1 and T2) applied at two droplet sizes (small and large), plus a control treatment with no insecticide. The table has 3 columns (None, Small droplet, Large droplet) and 3 rows (no insecticide, T1, T2). Treatment 1 is the control in the top-left cell, while treatments 2-5 represent the 2×2 factorial combinations, each illustrated with red water droplet icons of appropriate sizes.

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 output table showing analysis of variance for a treatment with 5 levels. The treatment effect is statistically significant (F=17.80, p<0.001). Below is a table of means showing treatment responses from 80.57 to 82.97, and standard errors with 12 degrees of freedom and s.e.d. of 0.336.

ANOVA on Treatment with Polynomial Contrasts

Enhanced ANOVA output table with polynomial contrasts for ordered treatment levels. Shows significant treatment effect (F=17.80, p<0.001) partitioned into linear contrast (F=69.34, p<0.001), quadratic contrast (F=0.62, p=0.446), and deviations (F=0.61, p=0.559). Treatment means range from 80.57 to 82.97."

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. 

Screenshot of genstat interface showing dialog boxes for configuring a 'Treatment' column. The main dialog shows column formatting options with 'Treatment' selected as a Factor type. A secondary 'Levels & labels' dialog displays the factor levels, showing 5 treatment levels (Trt 1 through Trt 5) with corresponding numeric codes (0, 10, 20, 40, 60) and counts of 4 observations each. The interface appears to be from statistical analysis software, likely for experimental design or data analysis."

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

ANOVA output table for 8 treatments showing significant treatment effect (F=74.04, p<0.001). Table of means shows treatment responses ranging from 7.14 to 23.60, with treatments numbered 1-8. Standard errors shown with 63 degrees of freedom and s.e.d. of 0.985.
Line graph titled 'Means for Treatment' showing treatment means plotted against treatment numbers. The y-axis shows Response values from approximately 7.5 to 23.5, and x-axis shows treatments ordered by increasing mean response. Points are connected by dotted lines showing an upward trend.

2-way ANOVA on Product by Species

Two-way ANOVA output table showing factorial analysis with Product and Species factors. Significant main effects for Product (F=192.42, p<0.001) and Species (F=97.74, p<0.001), plus significant interaction (F=10.87, p<0.001). Includes tables of means showing Product A (19.75) vs B (12.92) and Species means, plus interaction means for all Product×Species combinations."
Interaction plot titled 'Means for Species at different levels of Product' showing two lines: solid black line with circles for Product A and dashed red line with squares for Product B. Both lines increase across species (Californian, Scotch, Nodding, Winged) but with different slopes, illustrating the Product×Species interaction effect.

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

ANOVA output table for 15 treatments showing significant treatment effect (F=41.50, p<0.001). Table of means displays treatment responses ranging from 1.518 to 6.332 across treatments 1-15. Standard errors shown with 42 degrees of freedom and s.e.d. of 0.3777."
Bar chart titled 'Means for Treatment' showing response values for treatments 1-15. Bars are color-coded in three groups: yellow bars (Trt 1-6) ranging from about 2.7 to 6.7, green bars (Trt 7-10) ranging from about 3.0 to 6.6, and gray bars (Trt 11-15) ranging from about 1.5 to 6.3. A least significant difference (l.s.d.) bar is shown at 5% level.

2-way ANOVA on Product by Temperature with Polynomial Contrasts

Two-way ANOVA with polynomial contrasts for Product×Temperature factorial design. Shows significant main effects for Product (F=38.60, p<0.001) and Temperature (F=123.99, p<0.001), with significant linear (F=471.95, p<0.001) and quadratic (F=23.76, p<0.001) temperature trends. No significant Product×Temperature interaction (F=0.97, p=0.471). Includes tables of means for three products (I, II, III) across five temperature levels (-10°C to -50°C).
Line graph titled 'Means for Temperature at different levels of Product' showing three lines representing Products I (yellow circles), II (green squares), and III (gray diamonds). All three lines show decreasing response values as temperature decreases from -10°C to -50°C, with Product II having the highest values and Product III the lowest. Lines follow similar curved patterns indicating no interaction effect.

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.

A treatment coding table showing how the factorial plus control design is structured with three factors: Treated (Yes/No), Insecticide (None/T1/T2), and Droplet (None/Small/Large). The control treatment has 'No' for Treated, while the four factorial treatments have 'Yes' for Treated with corresponding insecticide and droplet combinations.

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 output for factorial plus control design showing significant treatment effect (F=3.57, p=0.038). Table of means shows Control (Treatment 1) with highest response (6.085) and four other treatments with lower responses (5.026-5.575). Includes diagnostic message about large residuals for one observation. Standard errors with 12 degrees of freedom and s.e.d. of 0.2947.

ANOVA on Factorial + Control

Factorial plus control ANOVA output showing nested structure with Treated factor and Insecticide×Droplet factorial within treated units. Significant overall treatment effect (F=10.20, p=0.008) for Treated vs Control, weak evidence for insecticide difference (F=3.25, p=0.096), no significant droplet effect (F=0.15, p=0.704) or interaction (F=0.69, p=0.423). Complex tables of means show Control (6.085) vs treated combinations, with detailed breakdown by insecticide type (T1, T2) and droplet size (Small, Large).

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.

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