SLIDE 21 21
41 Anders Ringgaard Kristensen, IPH Anders Ringgaard Kristensen, IPH
Let us run the model in SAS
- A binary variable ”boy” is
introduced in order to distinguish observations for boys from those for girls.
- The ”class” statement informs
SAS, that it is a categorical variable.
estimates to be printed. Data one; input x boy y; cards; 169.6 1 71.2 166.8 1 58.2 157.1 0 56 181.1 1 64.5 158.4 0 53 165.6 0 52.4 166.7 1 56.8 156.5 0 49.2 168.1 1 55.6 165.3 0 77.8 proc glm; class boy; model y = boy x/solution; run;
42 Anders Ringgaard Kristensen, IPH Anders Ringgaard Kristensen, IPH
The SAS System 15:03 Friday, August 12, 2005 3 The GLM Procedure Dependent Variable: y Sum of Source DF Squares Mean Square F Value Pr > F Model 2 184.3390600 92.1695300 1.18 0.3622 Error 7 547.6219400 78.2317057 Corrected Total 9 731.9610000 R-Square Coeff Var Root MSE y Mean 0.251843 14.87282 8.844869 59.47000 Source DF Type I SS Mean Square F Value Pr > F boy 1 32.0410000 32.0410000 0.41 0.5426 x 1 152.2980600 152.2980600 1.95 0.2056 Source DF Type III SS Mean Square F Value Pr > F boy 1 24.3916240 24.3916240 0.31 0.5940 x 1 152.2980600 152.2980600 1.95 0.2056 Standard Parameter Estimate Error t Value Pr > |t| Intercept -78.04418172 B 99.91919818 -0.78 0.4604 boy 0 4.49418348 B 8.04862772 0.56 0.5940 boy 1 0.00000000 B . . . x 0.81722505 0.58571438 1.40 0.2056 The SAS System 15:03 Friday, August 12, 2005 8 The GLM Procedure Dependent Variable: y NOTE: The X'X matrix has been found to be singular, and a generalized inverse was used to solve the normal equations. Terms whose estimates are followed by the letter 'B' are not uniquely estimable