27.03.2013 Views

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

GLM: Overview 649<br />

For univariate and multivariate models, you can specify one, two, or all three of the L, M, and<br />

K matrices. If only one or two types are specified, the unspecified matrices use the defaults<br />

shown in Table 1 (read across the rows).<br />

Table 1 Default matrices for univariate and multivariate models if one matrix is specified<br />

L matrix M matrix K matrix<br />

If LMATRIX is used to specify<br />

the L matrix<br />

Default = intercept matrix †<br />

Default = intercept matrix †<br />

Example<br />

Default = identity matrix *<br />

If MMATRIX is used to specify<br />

the M matrix<br />

Default = identity matrix *<br />

Default = zero matrix<br />

Default = zero matrix<br />

If KMATRIX is used to<br />

specify the K matrix<br />

* The dimension of the identity matrix is the same as the number of dependent variables being studied.<br />

† The intercept matrix is the matrix corresponding to the estimable function for the intercept term in<br />

the model, provided that the intercept term is included in the model. If the intercept term is not included<br />

in the model, the L matrix is not defined and this custom hypothesis test cannot be performed.<br />

GLM Y1 Y2 BY A B<br />

/LMATRIX = A 1 -1<br />

/DESIGN A B.<br />

Assume that factor A has two levels.<br />

• Since there are two dependent variables, this is a multivariate model with two main factor<br />

effects, A and B.<br />

• A custom hypothesis test is requested by the LMATRIX subcommand.<br />

• Since no MMATRIX or KMATRIX is specified. The M matrix is the default two-dimensional<br />

identity matrix, and the K matrix is a zero-row vector (0, 0).

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

Saved successfully!

Ooh no, something went wrong!