SPLIT Subcommand (MATRIX DATA command)

SPLIT specifies the variables whose values define the split files. SPLIT must follow the VARIABLES subcommand.

  • SPLIT can specify a subset of up to eight of the variables named on VARIABLES. All split variables must be numeric. The keyword TO can be used to imply variables in the order in which they are named on VARIABLES.
  • A separate matrix must be included in the data for each value of each split variable. MATRIX DATA generates a complete set of matrix materials for each.
  • If the data contain neither ROWTYPE_ nor split-file variables, a single split-file variable can be specified on SPLIT. This variable is not specified on the VARIABLES subcommand. MATRIX DATA generates a complete set of matrix materials for each set of matrix materials in the data and assigns values 1, 2, 3, etc., to the split variable until the end of the data is encountered.

Example

MATRIX DATA  VARIABLES=S1 ROWTYPE_ V1 TO V3 /SPLIT=S1.
BEGIN DATA
0 MEAN   5  4  3
0 SD     1  2  3
0 N      9  9  9
0 CORR   1
0 CORR  .6  1
0 CORR  .7 .8  1
1 MEAN   9  8  7
1 SD     5  6  7
1 N      9  9  9
1 CORR   1
1 CORR  .4  1
1 CORR  .3 .2  1
END DATA.
LIST.
  • The split variable S1 has two values: 0 and 1. Two separate matrices are entered in the data, one for each value S1.
  • S1 must be specified on both VARIABLES and SPLIT.

Example

MATRIX DATA VARIABLES=V1 TO V3 /CONTENTS=MEAN SD N CORR
   /SPLIT=SPL.
BEGIN DATA
  5  4  3
  1  2  3
  9  9  9
  1
 .6  1
 .7 .8  1
  9  8  7
  5  6  7
  9  9  9
  1
 .4  1
 .3 .2  1
END DATA.
LIST.
  • The split variable SPL is not specified on VARIABLES, and values for SPL are not included in the data.
  • Two sets of matrix materials are included in the data. MATRIX DATA therefore assigns values 1 and 2 to variable SPL and generates two matrices in the matrix data file.