Models (GLM command)
The following examples are models that can be
specified by using GLM
:
Model 1: Univariate or Multivariate Simple and Multiple Regression
GLM Y WITH X1 X2.
GLM Y1 Y2 WITH X1 X2 X3.
Model 2: Fixed-effects ANOVA and MANOVA
GLM Y1 Y2 BY B.
Model 3: ANCOVA and Multivariate ANCOVA (MANCOVA)
GLM Y1 Y2 BY B WITH X1 X2 X3.
Model 4: Random-effects ANOVA and ANCOVA
GLM Y1 BY C WITH X1 X2
/RANDOM = C.
Model 5: Mixed-model ANOVA and ANCOVA
GLM Y1 BY B, C WITH X1 X2
/RANDOM = C.
Model 6: Repeated Measures Analysis Using a Split-plot Design
(Univariate mixed models approach with subject as a random effect)
If drug is a between-subjects factor and time is a within-subjects factor,
GLM Y BY DRUG SUBJECT TIME
/RANDOM = SUBJECT
/DESIGN = DRUG SUBJECT*DRUG TIME DRUG*TIME.
Model 7: Repeated Measures Using the WSFACTOR Subcommand
Use this model only when there is no random between-subjects effect in the model. For example, if Y1, Y2, Y3, and Y4 are the dependent variables, measured at times 1 to 4,
GLM Y1 Y2 Y3 Y4 BY DRUG
/WSFACTOR = TIME 4
/DESIGN.
Model 8: Repeated Measures Doubly Multivariate Model
Repeated measures fixed-effects MANOVA is also called a doubly multivariate model. Varying or time-dependent covariates are not available. This model can be used only when there is no random between-subjects effect in the model.
GLM X11 X12 X13 X21 X22 X23
Y11 Y12 Y13 Y21 Y22 Y23 BY C D
/MEASURE = X Y
/WSFACTOR = A 2 B 3
/WSDESIGN = A B A*B
/DESIGN = C D.
Model 9: Means Model for ANOVA and MANOVA
This model takes only fixed-effect factors (no
random effects and covariates) and always assumes the highest order
of the interactions among the factors. For example, B, D, and E are fixed factors, and Y1 and Y2 are two
dependent variables. You can specify a means model by suppressing
the intercept effect and specifying the highest order of interaction
on the DESIGN
subcommand.
GLM Y1 Y2 BY B, D, E
/INTERCEPT = EXCLUDE
/DESIGN = B*D*E.