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.

DESIGN Subcommand<br />

GLM: Univariate 671<br />

DESIGN specifies the effects included in a specific model. The cells in a design are defined<br />

by all of the possible combinations of levels of the factors in that design. The number of cells<br />

equals the product of the number of levels of all the factors. A design is balanced if each cell<br />

contains the same number of cases. GLM can analyze both balanced and unbalanced designs.<br />

• Specify a list of terms to be included in the model, separated by spaces or commas.<br />

• The default design, if the DESIGN subcommand is omitted or is specified by itself, is a design<br />

consisting of the following terms in order: the intercept term (if INTERCEPT=INCLUDE<br />

is specified), next the covariates given in the covariate list, and then the full factorial model<br />

defined by all factors on the factor list and excluding the intercept.<br />

• To include a term for the main effect of a factor, enter the name of the factor on the<br />

DESIGN subcommand.<br />

• To include the intercept term in the design, use the keyword INTERCEPT on the DESIGN<br />

subcommand. If INTERCEPT is specified on the DESIGN subcommand, the subcommand<br />

INTERCEPT=EXCLUDE is overridden.<br />

• To include a term for an interaction between factors, use the keyword BY or the asterisk<br />

(*) to join the factors involved in the interaction. For example, A*B means a two-way interaction<br />

effect of A and B, where A and B are factors. A*A is not allowed because factors inside an<br />

interaction effect must be distinct.<br />

• To include a term for nesting one effect within another, use the keyword WITHIN or a pair<br />

of parentheses on the DESIGN subcommand. For example, A(B) means that A is nested<br />

within B. The expression A(B) is equivalent to the expression A WITHIN B. When more than<br />

one pair of parentheses is present, each pair of parentheses must be enclosed or nested<br />

within another pair of parentheses. Thus, A(B)(C) is not valid.<br />

• Multiple nesting is allowed. For example, A(B(C)) means that B is nested within C, and A<br />

is nested within B(C).<br />

• Interactions between nested effects are not valid. For example, neither A(C)*B(C) nor<br />

A(C)*B(D) is valid.<br />

• To include a covariate term in the design, enter the name of the covariate on the DESIGN<br />

subcommand.<br />

• Covariates can be connected, but not nested, through the * operator to form another covariate<br />

effect. Therefore, interactions among covariates such as X1*X1 and X1*X2 are valid, but not<br />

X1(X2). Using covariate effects such as X1*X1, X1*X1*X1, X1*X2, and X1*X1*X2*X2 makes<br />

fitting a polynomial regression model easy in GLM.<br />

• Factor and covariate effects can be connected only by the * operator. Suppose A and B are<br />

factors, and X1 and X2 are covariates. Examples of valid factor-by-covariate interaction effects<br />

are A*X1, A*B*X1, X1*A(B), A*X1*X1, and B*X1*X2.<br />

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

Example<br />

GLM Y BY A B C WITH X<br />

/DESIGN A B(A) X*A.<br />

• In this example, the design consists of a main effect A, a nested effect B within A, and an<br />

interaction effect of a covariate X with a factor A.

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

Saved successfully!

Ooh no, something went wrong!