VARIABLES Subcommand (CORRELATIONS command)

VARIABLES specifies the variable list.

  • A simple variable list produces a square matrix of correlations of each variable with every other variable.
  • Variable lists joined by the keyword WITH produce a rectangular correlation matrix. Variables before WITH define the rows of the matrix and variables after WITH define the columns.
  • The keyword ALL can be used on the variable list to refer to all user-defined variables.
  • You can specify multiple VARIABLES subcommands on a single CORRELATIONS command. The slash between the subcommands is required; the keyword VARIABLES is not.
  • If only varlist1is specified, the confidence limits are estimated for each different pair of the variables contained within varlist1. If varlist1 WITH varlist2 is specified, the confidence limits are estimated for each different pair of the variables with one contained within varlist1 and the other varlist2. The confidence limits of the pair containing a variable and itself are not estimated.

Example

CORRELATIONS VARIABLES=FOOD RENT PUBTRANS TEACHER COOK ENGINEER
  /VARIABLES=FOOD RENT WITH COOK TEACHER MANAGER ENGINEER
  /MISSING=INCLUDE.
  • The first VARIABLES subcommand requests a square matrix of correlation coefficients among the variables FOOD, RENT, PUBTRANS, TEACHER, COOK, and ENGINEER.
  • The second VARIABLES subcommand requests a rectangular correlation matrix in which FOOD and RENT are the row variables and COOK, TEACHER, MANAGER, and ENGINEER are the column variables.