/* Two-way ANOVA (Balanced) */ OPTIONS LS=75 PS=55 NODATE PAGENO=1; DATA one; INPUT height $ width $ sales; DATALINES; Bottom Regular 47 Bottom Regular 43 Bottom Wide 46 Bottom Wide 40 Middle Regular 62 Middle Regular 68 Middle Wide 67 Middle Wide 71 Top Regular 41 Top Regular 39 Top Wide 42 Top Wide 46 ; PROC GLM; TITLE 'Two-way ANOVA With Interaction'; CLASS height width; MODEL sales = height width height*width; MEANS height / T; RUN; PROC GLM; TITLE 'Two-way ANOVA Without Interaction'; CLASS height width; MODEL sales = height width; MEANS height / T; RUN; QUIT; ******************************************************8 Two-way ANOVA With Interaction 1 The GLM Procedure Class Level Information Class Levels Values height 3 Bottom Middle Top width 2 Regular Wide Number of Observations Read 12 Number of Observations Used 12 Two-way ANOVA With Interaction 2 The GLM Procedure Dependent Variable: sales Sum of Source DF Squares Mean Square F Value Pr > F Model 5 1580.000000 316.000000 30.58 0.0003 Error 6 62.000000 10.333333 Corrected Total 11 1642.000000 R-Square Coeff Var Root MSE sales Mean 0.962241 6.303040 3.214550 51.00000 Source DF Type I SS Mean Square F Value Pr > F height 2 1544.000000 772.000000 74.71 <.0001 width 1 12.000000 12.000000 1.16 0.3226 height*width 2 24.000000 12.000000 1.16 0.3747 Source DF Type III SS Mean Square F Value Pr > F height 2 1544.000000 772.000000 74.71 <.0001 width 1 12.000000 12.000000 1.16 0.3226 height*width 2 24.000000 12.000000 1.16 0.3747 Two-way ANOVA With Interaction 3 The GLM Procedure t Tests (LSD) for sales NOTE: This test controls the Type I comparisonwise error rate, not the experimentwise error rate. Alpha 0.05 Error Degrees of Freedom 6 Error Mean Square 10.33333 Critical Value of t 2.44691 Least Significant Difference 5.5619 Means with the same letter are not significantly different. t Grouping Mean N height A 67.000 4 Middle B 44.000 4 Bottom B B 42.000 4 Top Two-way ANOVA Without Interaction 4 The GLM Procedure Class Level Information Class Levels Values height 3 Bottom Middle Top width 2 Regular Wide Number of Observations Read 12 Number of Observations Used 12 Two-way ANOVA Without Interaction 5 The GLM Procedure Dependent Variable: sales Sum of Source DF Squares Mean Square F Value Pr > F Model 3 1556.000000 518.666667 48.25 <.0001 Error 8 86.000000 10.750000 Corrected Total 11 1642.000000 R-Square Coeff Var Root MSE sales Mean 0.947625 6.428861 3.278719 51.00000 Source DF Type I SS Mean Square F Value Pr > F height 2 1544.000000 772.000000 71.81 <.0001 width 1 12.000000 12.000000 1.12 0.3216 Source DF Type III SS Mean Square F Value Pr > F height 2 1544.000000 772.000000 71.81 <.0001 width 1 12.000000 12.000000 1.12 0.3216 Two-way ANOVA Without Interaction 6 The GLM Procedure t Tests (LSD) for sales NOTE: This test controls the Type I comparisonwise error rate, not the experimentwise error rate. Alpha 0.05 Error Degrees of Freedom 8 Error Mean Square 10.75 Critical Value of t 2.30600 Least Significant Difference 5.3463 Means with the same letter are not significantly different. t Grouping Mean N height A 67.000 4 Middle B 44.000 4 Bottom B B 42.000 4 Top