* chapter_12_table_21 The data in Table 12.21 consist of hypothetical aggressiveness scores for 6 monkeys who have been exposed to three types of drugs (A, B, and C). In order to control for potential order effects, a Latin square design is utilized. In particular, two randomly constituted squares are formed with three monkeys randomly assigned to each square and also randomly assigned to the particular row of the square that assigns the order that they are exposed to treatment; LIBNAME md 'd:\data files by type\sas data files\tables'; DATA c12t21; SET md.chapter_12_table_21; * The hypothesis of primary interest is whether the drugs differ in their effectiveness in controlling aggression in the monkeys. Thus, the test of the condition main effect is of primary interest. The current procedure reproduces the results for test of the condition main effect shown on page 615. The following SAS syntax is used to obtain the test of condition for an ANOVA on a Latin square design from the data in Chapter 12, Table 21 The LSMEANS line yields the results given in Table 12.22.; PROC GLM; CLASS subject cond time; MODEL dv = subject cond time / solution; RANDOM subject; LSMEANS subject cond time; RUN;