Example (MULTIPLE CORRESPONDENCE command)

MULTIPLE CORRESPONDENCE /VARIABLES = TEST1 TEST2 TEST3 TO TEST6 TEST7 TEST8
  /ANALYSIS = TEST1 TO TEST2(WEIGHT=2) 
              TEST3 TO TEST5
              TEST6 TEST7
              TEST8 
  /DISCRETIZATION = TEST1(GROUPING NCAT=5 DISTR=UNIFORM)
                    TEST6(GROUPING) TEST8(MULTIPLYING)
  /MISSING = TEST5(ACTIVE) TEST6(ACTIVE EXTRACAT) TEST8(LISTWISE)
  /SUPPLEMENTARY = OBJECT(1 3) VARIABLE(TEST1)
  /CONFIGURATION = ('iniconf.sav')
  /DIMENSION = 2
  /NORMALIZATION = VPRINCIPAL 
  /MAXITER = 150
  /CRITITER = .000001
  /PRINT =  DESCRIP DISCRIM CORR QUANT(TEST1 TO TEST3) OBJECT
  /PLOT = TRANS(TEST2 TO TEST5) OBJECT(TEST2 TEST3)
  /SAVE = TRDATA OBJECT
  /OUTFILE = TRDATA('/data/trans.sav')  OBJECT('/data/obs.sav').
  • VARIABLES defines variables. The keyword TO refers to the order of the variables in the working data file.
  • The ANALYSIS subcommand defines variables used in the analysis. It is specified that TEST1 and TEST2 have a weight of 2 (for the other variables, WEIGHT is not specified and thus they have the default weight value of 1).
  • DISCRETIZATION specifies that TEST6 and TEST8, which are fractional value variables, are discretized: TEST6 by recoding into seven categories with a normal distribution (default because unspecified) and TEST8 by “multiplying”. TEST1, which is a categorical variable, is recoded into five categories with a close to uniform distribution.
  • MISSING specifies that objects with missing values on TEST5 and TEST6 are included in the analysis: missing values on TEST5 are replaced with the mode (default if not specified) and missing values on TEST6 are treated as an extra category. Objects with a missing value on TEST8 are excluded from the analysis. For all other variables, the default is in effect; that is, missing values (not objects) are excluded from the analysis.
  • CONFIGURATION specifies iniconf.sav as the file containing the coordinates of a configuration that is to be used as the initial configuration (default because unspecified).
  • DIMENSION specifies the number of dimensions to be 2. This is the default, so this subcommand could be omitted here.
  • The NORMALIZATION subcommand specifies optimization of the association between variables. This is the default, so this subcommand could be omitted here.
  • MAXITER specifies the maximum number of iterations to be 150 instead of the default value of 100.
  • CRITITER sets the convergence criterion to a value smaller than the default value.
  • PRINT specifies descriptives, discrimination measures, and correlations (all default), and quantifications for TEST1 to TEST3, and the object scores.
  • PLOT is used to request transformation plots for the variables TEST2 to TEST5, an object points plot labeled with the categories of TEST2, and an object points plot labeled with the categories of TEST3.
  • The SAVE subcommand adds the transformed variables and the object scores to the working data file.
  • The OUTFILE subcommand writes the transformed data to a data file called trans.sav and the object scores to a data file called obs.sav, both in the directory /data.