12.12.2012 Views

SAS/STAT 922 User's Guide: The MIXED Procedure (Book Excerpt)

SAS/STAT 922 User's Guide: The MIXED Procedure (Book Excerpt)

SAS/STAT 922 User's Guide: The MIXED Procedure (Book Excerpt)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4522 ✦ Chapter 56: <strong>The</strong> <strong>MIXED</strong> <strong>Procedure</strong><br />

<strong>The</strong> statements to fit this correlation model in PROC <strong>MIXED</strong> are as follows:<br />

proc mixed;<br />

class Family Gender;<br />

model Height = Gender;<br />

random Family Family*Gender;<br />

run;<br />

Note that Family and Family*Gender are now listed in the RANDOM statement. <strong>The</strong> dummy variables<br />

associated with them are used to construct the Z matrix in the mixed model. <strong>The</strong> X matrix now<br />

consists of a column of 1s and the dummy variables for Gender.<br />

<strong>The</strong> G matrix for this model is diagonal, and it contains the variance components for both Family and<br />

Family*Gender. <strong>The</strong> R matrix is still assumed to equal 2 I, where I is an identity matrix.<br />

<strong>The</strong> output from this analysis is as follows.<br />

Figure 56.8 Model Information<br />

<strong>The</strong> Mixed <strong>Procedure</strong><br />

Model Information<br />

Data Set WORK.HEIGHTS<br />

Dependent Variable Height<br />

Covariance Structure Variance Components<br />

Estimation Method REML<br />

Residual Variance Method Profile<br />

Fixed Effects SE Method Model-Based<br />

Degrees of Freedom Method Containment<br />

<strong>The</strong> “Model Information” table in Figure 56.8 shows that the containment method is used to compute<br />

the degrees of freedom for this analysis. This is the default method when a RANDOM statement is<br />

used; see the description of the DDFM= option for more information.<br />

Figure 56.9 Class Level Information<br />

Class Level Information<br />

Class Levels Values<br />

Family 4 1 2 3 4<br />

Gender 2 F M<br />

<strong>The</strong> “Class Level Information” table in Figure 56.9 is the same as before. <strong>The</strong> “Dimensions” table in<br />

Figure 56.10 displays the new sizes of the X and Z matrices.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!