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.

650 GLM: Overview<br />

For a repeated measures model, you can specify one, two, or all three of the L, M, and K<br />

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

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

Table 2 Default matrices for repeated measures models if only one matrix is specified<br />

L matrix M matrix K matrix<br />

If LMATRIX is used to specify<br />

the L matrix<br />

Default = average matrix *<br />

Default = zero matrix<br />

Default = intercept matrix †<br />

If MMATRIX is used to specify<br />

the M matrix<br />

Default = zero matrix<br />

Default = intercept matrix † Default = average matrix * If KMATRIX is used to<br />

specify the K matrix<br />

* The average matrix is the transformation matrix that corresponds to the transformation for the<br />

between-subjects test. The dimension is the number of measures.<br />

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

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

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

Example<br />

GLM Y1 Y2 BY A B<br />

/WSFACTOR TIME (2)<br />

/MMATRIX Y1 1 Y2 1; Y1 1 Y2 -1<br />

/DESIGN A B.<br />

• Since WSFACTOR is specified, this is a repeated measures model with two betweensubjects<br />

factors A and B, and a within-subjects factor, TIME.<br />

• A custom hypothesis is requested by the MMATRIX subcommand. The M matrix is a<br />

matrix:<br />

1 1<br />

1 –1<br />

• Since the L matrix and the K matrix are not specified, their defaults are used. The default<br />

for the L matrix is the matrix corresponding to the estimable function for the intercept<br />

term in the between-subjects model, and the default for the K matrix is a zero-row vector<br />

(0, 0).<br />

CONTRAST Subcommand<br />

2× 2<br />

When the CONTRAST subcommand is used, an L matrix, which is used in custom hypothesis<br />

testing, is generated according to the contrast chosen. The K matrix is always taken to be the<br />

zero matrix. If the model is univariate or multivariate, the M matrix is always the identity matrix<br />

and its dimension is equal to the number of dependent variables. For a repeated measures<br />

model, the M matrix is always the average matrix that corresponds to the average transformation<br />

for the dependent variable.

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

Saved successfully!

Ooh no, something went wrong!