Optional Specification When ROWTYPE_ Is Explicit (MATRIX DATA command)

When ROWTYPE_ is explicitly named on VARIABLES, MATRIX DATA uses ROWTYPE_ values to determine record types.

  • When ROWTYPE_ is explicitly named on VARIABLES, CONTENTS can be used for informational purposes. However, ROWTYPE_ values in the data determine record types.
  • If MATRIX DATA reads values for ROWTYPE_ that are not specified on CONTENTS, it issues a warning.
  • Missing values for factors are entered as periods, even though CONTENTS is specified. See the topic FACTORS Subcommand (MATRIX DATA command) for more information.

Example

MATRIX DATA VARIABLES=ROWTYPE_ F1 F2 VAR1 TO VAR3
  /FACTORS=F1 F2 /CONTENTS=(MEAN SD N) CORR.
BEGIN DATA
MEAN 1 1  1  2  3
SD   1 1  5  4  3
N    1 1  9  9  9
MEAN 1 2  4  5  6
SD   1 2  6  5  4
N    1 2  9  9  9
CORR . .  1
CORR . . .6  1
CORR . . .7 .8  1
END DATA.
  • ROWTYPE_ is specified on VARIABLES. MATRIX DATA therefore uses ROWTYPE_ values in the data to identify record types.
  • Because ROWTYPE_ is specified on VARIABLES, CONTENTS is optional. However, CONTENTS is specified for informational purposes. This is most useful when data are in an external file and the ROWTYPE_ values cannot be seen in the data.
  • Missing values for factors are entered as periods, even though CONTENTS is specified.