14.03.2014 Views

Modeling and Multivariate Methods - SAS

Modeling and Multivariate Methods - SAS

Modeling and Multivariate Methods - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

658 Statistical Details Appendix A<br />

The Factor Models<br />

Interactions <strong>and</strong> Crossed Effects<br />

Interaction effects with both GLM <strong>and</strong> JMP are constructed by taking a direct product over the rows of the<br />

design columns of the factors being crossed. For example, the GLM code<br />

PROC GLM;<br />

CLASS A B;<br />

MODEL A B A*B;<br />

yields this design matrix:<br />

Table A.3 Design Matrix<br />

A B AB<br />

A B 1 2 3 1 2 3 1<br />

1<br />

1<br />

2<br />

1<br />

3<br />

2<br />

1<br />

2<br />

2<br />

2<br />

3<br />

3<br />

1<br />

3<br />

2<br />

3<br />

3<br />

A1 B1 1 0 0 1 0 0 1 0 0 0 0 0 0 0 0<br />

A1 B2 1 0 0 0 1 0 0 1 0 0 0 0 0 0 0<br />

A1 B3 1 0 0 0 0 1 0 0 1 0 0 0 0 0 0<br />

A2 B1 0 1 0 1 0 0 0 0 0 1 0 0 0 0 0<br />

A2 B2 0 1 0 0 1 0 0 0 0 0 1 0 0 0 0<br />

A2 B3 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0<br />

A3 B1 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0<br />

A3 B2 0 0 1 0 1 0 0 0 0 0 0 0 0 1 0<br />

A3 B3 0 0 1 0 0 1 0 0 0 0 0 0 0 0 1<br />

Using the JMP Fit Model comm<strong>and</strong> <strong>and</strong> requesting a factorial model for columns A <strong>and</strong> B produces the<br />

following design matrix. Note that A13 in this matrix is A1–A3 in the previous matrix. However, A13B13 is<br />

A13*B13 in the current matrix.

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

Saved successfully!

Ooh no, something went wrong!