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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1612 UNIANOVA<br />

• B1 versus B2 at A1. In the first LMATRIX subcommand, the difference is tested between<br />

levels 1 and 2 of effect B when effect A is fixed at level 1. Since there are three levels each<br />

in effects A and B, the interaction effect A*B takes up nine columns in the design matrix.<br />

• Effect A. In the second LMATRIX subcommand, effect A is tested. Since there are three levels<br />

in effect A, at most two independent contrasts can be formed; thus, there are two rows in<br />

the L matrix, which are separated by a semicolon (;). The first row tests the difference<br />

between levels 1 and 3 of effect A, while the second row tests the difference between levels<br />

2 and 3 of effect A.<br />

• B1 versus B2 at A2. In the last LMATRIX subcommand, the keyword ALL is used. The first<br />

0 corresponds to the intercept effect; the next three zeros correspond to effect A.<br />

KMATRIX Subcommand<br />

The KMATRIX subcommand allows you to customize your hypothesis tests by specifying the<br />

K matrix (contrast results matrix) in the general form of the linear hypothesis LB = K. The<br />

vector B is the parameter vector in the linear model.<br />

• The default K matrix is a zero matrix; that is, LB = 0 is assumed.<br />

• For the KMATRIX subcommand to be valid, at least one of the following subcommands<br />

must be specified: the LMATRIX subcommand or the INTERCEPT = INCLUDE<br />

subcommand.<br />

• If KMATRIX is specified but LMATRIX is not specified, the LMATRIX is assumed to take the<br />

row vector corresponding to the intercept in the estimable function, provided the subcommand<br />

INTERCEPT = INCLUDE is specified. In this case, the K matrix can be only a scalar<br />

matrix.<br />

• If KMATRIX and LMATRIX are specified, then the number of rows in the requested K and<br />

L matrices must be equal. If there are multiple LMATRIX subcommands, then all requested<br />

L matrices must have the same number of rows, and K must have the same number of<br />

rows as these L matrices.<br />

• A semicolon (;) can be used to indicate the end of a row in the K matrix.<br />

• If more than one KMATRIX subcommand is specified, only the last one is in effect.<br />

Example<br />

UNIANOVA DEP BY A B<br />

/LMATRIX = “Effect A”<br />

A 1 0 -1; A 1 -1 0<br />

/LMATRIX = “Effect B”<br />

B 1 0 -1; B 1 -1 0<br />

/KMATRIX = 0; 0<br />

/DESIGN = A B.<br />

In this example, assume that factors A and B each have three levels.<br />

• There are two LMATRIX subcommands; both have two rows.<br />

• The first LMATRIX subcommand tests whether the effect of A is 0, while the second<br />

LMATRIX subcommand tests whether the effect of B is 0.<br />

• The KMATRIX subcommand specifies that the K matrix also has two rows, each with value 0.

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

Saved successfully!

Ooh no, something went wrong!