Example 86.4 A Latin Square Design

All of the preceding examples involve designs with completely nested block structures, for which PROC PLAN was especially
designed. However, by appropriate coordination of its facilities, PROC PLAN can accommodate a much wider class of designs.
A Latin square design is based on experimental units that have a row-and-column block structure. The following statements
use the CYCLIC
option in the TREATMENTS
statement to generate a simple Latin square. The RANDOM
option in the OUTPUT
statement randomizes the generated Latin square by randomly permuting the row, column, and treatment values independently.
This example also uses factor-value-settings in the OUTPUT
statement.

You can use the PLAN procedure to randomize Latin squares from any transformation sets. See Kempthorne (1952) for definitions of transformation sets. In particular, the following DATA step and PROC PLAN statements demonstrate how
to randomize a Latin square from the second transformation set defined in Kempthorne (1952). The following DATA step creates a Latin square from the transformation set 2: