GLM Variable List (GLM: Univariate command)
The variable list specifies the dependent variable, the factors, and the covariates in the model.
- The dependent variable must be the first specification
on
GLM
. - The names of the factors follow the dependent variable.
Use the keyword
BY
to separate the factors from the dependent variable. - Enter the covariates, if any, following the factors.
Use the keyword
WITH
to separate covariates from factors (if any) and the dependent variable.
Example
GLM DEPENDNT BY FACTOR1 FACTOR2, FACTOR3.
- In this example, three factors are specified.
- A default full factorial model is used for the analysis.
Example
GLM Y BY A WITH X
/DESIGN.
- In this example, the
DESIGN
subcommand requests the default design, which includes the intercept term, the covariate X, and the factor A.