Specification Type of Model
model y=x; simple regression
model y=x z; multiple regression
model y=x x*x; polynomial regression
model y1 y2=x z; multivariate regression
model y=a; one-way ANOVA
model y=a b c; main-effects ANOVA
model y=a b a*b; factorial ANOVA with interaction
model y=a b(a) c(b a); nested ANOVA
model y1 y2=a b; multivariate analysis of
variance (MANOVA)
model y=a x; analysis of covariance
model y=a x(a); separate-slopes regression
model y=a x x*a; homogeneity-of-slopes
regression
Types of Effects
There are seven different types of effects used in the GLM
procedure. In the following list, assume that A, B, C, D, and E are
CLASS variables and that X1, X2, and Y are continuous variables:
• Regressor effects are specified by writing continuous variables by
themselves: X1 X2.
• Polynomial effects are specified by joining two or more continuous
variables with asterisks: X1*X1 X1*X2.
• Main effects are specified by writing CLASS variables by
themselves: A B C.
• Crossed effects (interactions) are specified by joining classification
variables with asterisks: A*B B*C A*B*C.
• Nested effects are specified by following a main effect or crossed
effect with a classification variable or list of classification
variables enclosed in parentheses. The main effect or crossed
effect is nested within the effects listed in parentheses: B(A)
C(B*A) D*E(C*B*A). In this example, B(A) is read "B nested
within A."
• Continuous-by-class effects are written by joining continuous
variables and classification variables with asterisks: X1*A.
• Continuous-nesting-class effects consist of continuous variables
followed by a classification variable interaction enclosed in
parentheses: X1(A) X1*X2(A*B).