The ANOVA Procedure

Example 26.4 Latin Square Split Plot

(View the complete code for this example.)

The data for this example is taken from Smith (1951). A Latin square design is used to evaluate six different sugar beet varieties arranged in a six-row (Rep) by six-column (Column) square. The data are collected over two harvests. The variable Harvest then becomes a split plot on the original Latin square design for whole plots. The following statements produce Output 26.4.1, Output 26.4.2, and Output 26.4.3:

title1 'Sugar Beet Varieties';
title3 'Latin Square Split-Plot Design';
data Beets;
   do Harvest=1 to 2;
      do Rep=1 to 6;
         do Column=1 to 6;
            input Variety Y @;
            output;
         end;
      end;
   end;
   datalines;
3 19.1 6 18.3 5 19.6 1 18.6 2 18.2 4 18.5
6 18.1 2 19.5 4 17.6 3 18.7 1 18.7 5 19.9
1 18.1 5 20.2 6 18.5 4 20.1 3 18.6 2 19.2
2 19.1 3 18.8 1 18.7 5 20.2 4 18.6 6 18.5
4 17.5 1 18.1 2 18.7 6 18.2 5 20.4 3 18.5
5 17.7 4 17.8 3 17.4 2 17.0 6 17.6 1 17.6
3 16.2 6 17.0 5 18.1 1 16.6 2 17.7 4 16.3
6 16.0 2 15.3 4 16.0 3 17.1 1 16.5 5 17.6
1 16.5 5 18.1 6 16.7 4 16.2 3 16.7 2 17.3
2 17.5 3 16.0 1 16.4 5 18.0 4 16.6 6 16.1
4 15.7 1 16.1 2 16.7 6 16.3 5 17.8 3 16.2
5 18.3 4 16.6 3 16.4 2 17.6 6 17.1 1 16.5
;
proc anova data=Beets;
   class Column Rep Variety Harvest;
   model Y=Rep Column Variety Rep*Column*Variety
           Harvest Harvest*Rep
           Harvest*Variety;
   test h=Rep Column Variety e=Rep*Column*Variety;
   test h=Harvest            e=Harvest*Rep;
run;

Output 26.4.1: Class Level Information

Sugar Beet Varieties
 
Latin Square Split-Plot Design

The ANOVA Procedure

Class Level Information
ClassLevelsValues
Column61 2 3 4 5 6
Rep61 2 3 4 5 6
Variety61 2 3 4 5 6
Harvest21 2

Number of Observations Read72
Number of Observations Used72


Output 26.4.2: ANOVA Table

Sugar Beet Varieties
 
Latin Square Split-Plot Design

The ANOVA Procedure
 
Dependent Variable: Y

SourceDFSum of SquaresMean SquareF ValuePr > F
Model4698.91472222.15032007.22<.0001
Error257.44847220.2979389  
Corrected Total71106.3631944   

R-SquareCoeff VarRoot MSEY Mean
0.9299713.0855240.54583817.69028

SourceDFAnova SSMean SquareF ValuePr > F
Rep54.320694440.864138892.900.0337
Column51.574027780.314805561.060.4075
Variety520.619027784.1238055613.84<.0001
Column*Rep*Variety203.254444440.162722220.550.9144
Harvest160.6834722260.68347222203.68<.0001
Rep*Harvest57.717361111.543472225.180.0021
Variety*Harvest50.745694440.149138890.500.7729


First, note from Output 26.4.2 that the overall model is significant.

Output 26.4.3: Tests of Effects

Tests of Hypotheses Using the Anova MS for Column*Rep*Variety as an Error Term
SourceDFAnova SSMean SquareF ValuePr > F
Rep54.320694440.864138895.310.0029
Column51.574027780.314805561.930.1333
Variety520.619027784.1238055625.34<.0001

Tests of Hypotheses Using the Anova MS for Rep*Harvest as an Error Term
SourceDFAnova SSMean SquareF ValuePr > F
Harvest160.6834722260.6834722239.320.0015


Output 26.4.3 shows that the effects for Rep and Harvest are significant, while the Column effect is not. The average Ys for the six different Varietys are significantly different. For these four tests, look at the output produced by the two TEST statements, not at the usual ANOVA procedure output. The Variety*Harvest interaction is not significant. All other effects in the default output should either be tested by using the results from the TEST statements or are irrelevant as they are only error terms for portions of the model.