* ch08eg1.sas (data from test1q2.sas); options ls=78; * program mileage.sas from test 1, fall 2004; ; data mileage; input x y; * x = pressure (pounds per square inch), y = mileage (thousands); A = x; lines; 30 29.5 30 30.2 31 32.1 31 34.5 32 36.3 32 35.0 33 38.2 33 37.6 34 37.7 34 36.1 35 33.6 35 34.2 36 26.8 36 27.4 ; proc print; var x A y; ; proc glm; model y = x x*x; ; proc glm; class A; model y = x x*x A; The SAS System 1 Obs x A y 1 30 30 29.5 2 30 30 30.2 3 31 31 32.1 4 31 31 34.5 5 32 32 36.3 6 32 32 35.0 7 33 33 38.2 8 33 33 37.6 9 34 34 37.7 10 34 34 36.1 11 35 35 33.6 12 35 35 34.2 13 36 36 26.8 14 36 36 27.4 The SAS System 2 The GLM Procedure Number of observations 14 The SAS System 3 The GLM Procedure Dependent Variable: y Sum of Source DF Squares Mean Square F Value Pr > F Model 2 172.4088095 86.2044048 70.62 <.0001 Error 11 13.4283333 1.2207576 Corrected Total 13 185.8371429 R-Square Coeff Var Root MSE y Mean 0.927741 3.296740 1.104879 33.51429 Source DF Type I SS Mean Square F Value Pr > F x 1 2.4028571 2.4028571 1.97 0.1882 x*x 1 170.0059524 170.0059524 139.26 <.0001 Source DF Type III SS Mean Square F Value Pr > F x 1 168.8305103 168.8305103 138.30 <.0001 x*x 1 170.0059524 170.0059524 139.26 <.0001 Standard Parameter Estimate Error t Value Pr > |t| Intercept -1051.108333 92.61766008 -11.35 <.0001 x 66.185714 5.62799247 11.76 <.0001 x*x -1.005952 0.08524326 -11.80 <.0001 The SAS System 4 The GLM Procedure Class Level Information Class Levels Values A 7 30 31 32 33 34 35 36 Number of observations 14 The SAS System 5 The GLM Procedure Dependent Variable: y Sum of Source DF Squares Mean Square F Value Pr > F Model 6 180.0471429 30.0078571 36.28 <.0001 Error 7 5.7900000 0.8271429 Corrected Total 13 185.8371429 R-Square Coeff Var Root MSE y Mean 0.968844 2.713690 0.909474 33.51429 Source DF Type I SS Mean Square F Value Pr > F x 1 2.4028571 2.4028571 2.91 0.1321 x*x 1 170.0059524 170.0059524 205.53 <.0001 A 4 7.6383333 1.9095833 2.31 0.1574 Source DF Type III SS Mean Square F Value Pr > F x 0 0.00000000 . . . x*x 0 0.00000000 . . . A 4 7.63833333 1.90958333 2.31 0.1574