Variable List (GENLOG command)

The variable list specifies the variables to be included in the model. GENLOG analyzes two classes of variables—categorical and continuous. Categorical variables are used to define the cells of the table. Continuous variables are used as cell covariates.

  • The list of categorical variables must be specified first. Categorical variables must be numeric.
  • Continuous variables can be specified only after the WITH keyword following the list of categorical variables.
  • To specify a logit model, use the keyword BY (see Logit Model (GENLOG command)). A variable list without the keyword BY generates a general loglinear model.
  • A variable can be specified only once in the variable list—as a dependent variable immediately following GENLOG, as an independent variable following the keyword BY, or as a covariate following the keyword WITH.
  • No range needs to be specified for categorical variables.