VARIABLES Subcommand (MULT RESPONSE command)

VARIABLES specifies existing variables to be used in frequency tables and crosstabulations. Each variable is followed by parentheses enclosing a minimum and a maximum value, which are used to allocate cells for the tables for that variable.

  • You can specify any numeric variable on VARIABLES, but non-integer values are truncated.
  • If GROUPS is also specified, VARIABLES follows GROUPS.
  • To provide the same minimum and maximum for each of a set of variables, specify a variable list followed by a range specification.
  • The component variables specified on GROUPS can be used in frequency tables and crosstabulations, but you must specify them again on VARIABLES, along with a range for the values. You do not have to respecify the component variables if they will not be used as individual variables in any tables.

Example

MULT RESPONSE  GROUPS=MAGS 'MAGAZINES READ' (TIME TO STONE (2))
   /VARIABLES SEX(1,2) EDUC(1,3) 
   /FREQUENCIES=MAGS SEX EDUC.
  • The VARIABLES subcommand names the variables SEX and EDUC so that they can be used in a frequencies table.

Example

MULT RESPONSE  GROUPS=MAGS 'MAGAZINES READ' (TIME TO STONE (2)) 
   /VARIABLES=EDUC (1,3) TIME (1,2). 
   /TABLES=MAGS BY EDUC TIME. 
  • The variable TIME is used in a group and also in a table.