Variable List (LOGLINEAR command)

The variable list specifies the variables to be included in the model. LOGLINEAR 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. Continuous variables can be specified only after the keyword WITH following the list of categorical variables.

  • The list of categorical variables must be specified first. Categorical variables must be numeric and integer.
  • A range must be defined for each categorical variable by specifying, in parentheses after each variable name, the minimum and maximum values for that variable. Separate the two values with at least one space or a comma.
  • To specify the same range for a list of variables, specify the list of variables followed by a single range. The range applies to all variables on the list.
  • To specify a logit model, use the keyword BY (see Logit Model (LOGLINEAR command)). A variable list without the keyword BY generates a general loglinear model.
  • Cases with values outside the specified range are excluded from the analysis. Non-integer values within the range are truncated for the purpose of building the table.