* MANOVA data from Morrisons multivariate text, 2nd ed., page 190; Title 'Two Way Manova Example (Morrison)'; DATA drugs; * Rats are given one of 3 types of drug. weight loss (grams) * is the dependent measure over two weeks (Y1, Y2); Label Y1=Week1 Y2=Week2; INPUT sex $ drug $ @; *<-- read several obs. per line; input y1 y2 @; output; input y1 y2 @; output; input y1 y2 @; output; input y1 y2 @; output; list; datalines; M A 5 6 5 4 9 9 7 6 M B 7 6 7 7 9 12 6 8 M C 21 15 14 11 17 12 12 10 F A 7 10 6 6 9 7 8 10 F B 10 13 8 7 7 6 6 9 F C 16 12 14 9 14 8 10 5 ; proc plot vpercent=50; plot y2 * y1 = drug; plot y2 * y1 = sex ; proc glm; classes sex drug; MODEL Y1 Y2 = sex drug sex*drug /nouni; contrast 'drug C:A,B' drug -1 -1 2; contrast 'drug A:B' drug 1 -1 0; MANOVA H=sex drug sex*drug / short printE printH; means drug / tukey lines; run;