* fruit2.sas; options ls=72; ; data fruit; do B=1 to 3; do A=1 to 4; input y @@; output; end; end; lines; 29 50 43 53 41 58 42 73 66 85 69 85 ; proc sort; by A B; proc print; var A B y; proc glm; class A B; model y = A | B; means A | B; proc plot; plot y*A=B / vpos=25; The SAS System 1 OBS A B Y 1 1 1 29 2 1 2 41 3 1 3 66 4 2 1 50 5 2 2 58 6 2 3 85 7 3 1 43 8 3 2 42 9 3 3 69 10 4 1 53 11 4 2 73 12 4 3 85 The SAS System 2 General Linear Models Procedure Class Level Information Class Levels Values A 4 1 2 3 4 B 3 1 2 3 Number of observations in data set = 12 The SAS System 3 General Linear Models Procedure Dependent Variable: Y Sum of Mean Source DF Squares Square F Value Pr > F Model 11 3567.6667 324.3333 . . Error 0 . . Corrected Total 11 3567.6667 R-Square C.V. Root MSE Y Mean 1.000000 0 0 57.833 Source DF Type I SS Mean Square F Value Pr > F A 3 1191.0000 397.0000 . . B 2 2225.1667 1112.5833 . . A*B 6 151.5000 25.2500 . . Source DF Type III SS Mean Square F Value Pr > F A 3 1191.0000 397.0000 . . B 2 2225.1667 1112.5833 . . A*B 6 151.5000 25.2500 . . The SAS System 4 General Linear Models Procedure Level of --------------Y-------------- A N Mean SD 1 3 45.3333333 18.8767935 2 3 64.3333333 18.3393929 3 3 51.3333333 15.3079500 4 3 70.3333333 16.1658075 Level of --------------Y-------------- B N Mean SD 1 4 43.7500000 10.6887792 2 4 53.5000000 15.1547572 3 4 76.2500000 10.1775898 Level of Level of --------------Y-------------- A B N Mean SD 1 1 1 29.0000000 . 1 2 1 41.0000000 . 1 3 1 66.0000000 . 2 1 1 50.0000000 . 2 2 1 58.0000000 . 2 3 1 85.0000000 . 3 1 1 43.0000000 . 3 2 1 42.0000000 . 3 3 1 69.0000000 . 4 1 1 53.0000000 . 4 2 1 73.0000000 . 4 3 1 85.0000000 . The SAS System 5 Plot of Y*A. Symbol is value of B. 100 + | | | | 3 3 | 80 + | | 2 Y | 3 | 3 | 60 + | 2 | 1 | 1 | | 1 40 + 2 | | | 1 | | 20 + ---+----------------+----------------+----------------+-- 1 2 3 4 A NOTE: 1 obs hidden.