The LATTICE Procedure

Example 69.1 Analysis of Variance through PROC LATTICE

(View the complete code for this example.)

In the following example, from Cochran and Cox (1957, p. 406), the data are yields (Yield) in bushels per acre of 25 varieties (Treatment) of soybeans. The data are collected in two replications (Group) of 25 varieties in five blocks (Block) containing five varieties each. This is an example of a partially balanced square lattice design.

data Soy(drop=plot);
   do Group = 1 to 2;
      do Block = 1 to 5;
         do Plot = 1 to 5;
            input Treatment Yield @@;
            output;
         end;
      end;
   end;
   datalines;
 1  6  2  7  3  5  4  8  5  6  6 16  7 12  8 12  9 13 10  8
11 17 12  7 13  7 14  9 15 14 16 18 17 16 18 13 19 13 20 14
21 14 22 15 23 11 24 14 25 14  1 24  6 13 11 24 16 11 21  8
 2 21  7 11 12 14 17 11 22 23  3 16  8  4 13 12 18 12 23 12
 4 17  9 10 14 30 19  9 24 23  5 15 10 15 15 22 20 16 25 19
;
proc lattice data=Soy;
run;

The results from these statements are shown in Output 69.1.1.

Output 69.1.1: Displayed Output from PROC LATTICE

The Lattice Procedure

Analysis of Variance for Yield
SourceDFSum of SquaresMean Square
Replications1212.18212.18
Blocks within Replications (Adj.)8501.8462.7300
Component B8501.8462.7300
Treatments (Unadj.)24559.2823.3033
Intra Block Error16218.4813.6550
Randomized Complete Block Error24720.3230.0133
Total491491.7830.4445

Additional Statistics for Yield
Variance of Means in Same Block15.7915
Variance of Means in Different Blocks17.9280
Average of Variance17.2159
LSD at .01 Level12.1189
LSD at .05 Level8.7959
Efficiency Relative to RCBD174.34

Adjusted Treatment
Means for Yield
TreatmentMean
119.0681
216.9728
314.6463
414.7687
512.8470
613.1701
79.0748
86.7483
98.3707
108.4489
1123.5511
1212.4558
1312.6293
1420.7517
1519.3299
1612.6224
1710.5272
1810.7007
197.3231
2011.4013
2111.6259
2218.5306
2312.2041
2417.3265
2515.4048


The efficiency of the experiment relative to a randomized complete block design is 174.34%. Precision is gained using the lattice design via the recovery of intra-block error information, enabling more accurate estimates of the treatment effects. Variety 8 of soybean had the lowest adjusted treatment mean (6.7483 bushels per acre), while variety 11 of soybean had the highest adjusted treatment mean (23.5511 bushels per acre).