Variable ROWTYPE_ (MATRIX DATA command)
- ROWTYPE_ is a
string variable with
A8
format. Its values define the data types. All matrix data files contain a ROWTYPE_ variable. - If ROWTYPE_ is
specified on
VARIABLES
and its values are entered in the data,MATRIX DATA
is primarily used to define the names and order of the variables in the raw data file. - ROWTYPE_ must precede the continuous variables.
- Valid values for ROWTYPE_ are CORR, COV, MAT, MSE, DFE, MEAN, STDDEV (or SD), N_VECTOR (or N), N_SCALAR, N_MATRIX, COUNT, or PROX. For definitions of these values. See the topic CONTENTS Subcommand (MATRIX DATA command) for more information. Three-character abbreviations for these values are permitted. These values can also be enclosed in quotation marks or apostrophes.
- If ROWTYPE_ is
not specified on
VARIABLES
,CONTENTS
must be used to define the order in which the records occur within the file.MATRIX DATA
follows these specifications strictly and generates a ROWTYPE_ variable according to theCONTENTS
specifications. A data-entry error, especially skipping a record, can cause the procedure to assign the wrong values to the wrong records.
Example
* ROWTYPE_ is specified on VARIABLES.
MATRIX DATA
VARIABLES=ROWTYPE_ SAVINGS POP15 POP75 INCOME GROWTH.
BEGIN DATA
MEAN 9.6710 35.0896 2.2930 1106.7784 3.7576
STDDEV 4.4804 9.1517 1.2907 990.8511 2.8699
N 50 50 50 50 50
CORR 1
CORR -.4555 1
CORR .3165 -.9085 1
CORR .2203 -.7562 .7870 1
CORR .3048 -.0478 .0253 -.1295 1
END DATA.
- ROWTYPE_ is specified
on
VARIABLES
. ROWTYPE_ values in the data identify each record type. - Note that VARNAME_ is not specified on
VARIABLES
, and its values are not entered in the data.
Example
* ROWTYPE_ is specified on VARIABLES.
MATRIX DATA
VARIABLES=ROWTYPE_ SAVINGS POP15 POP75 INCOME GROWTH.
BEGIN DATA
'MEAN ' 9.6710 35.0896 2.2930 1106.7784 3.7576
'SD ' 4.4804 9.1517 1.2907 990.8511 2.8699
'N ' 50 50 50 50 50
"CORR " 1
"CORR " -.4555 1
"CORR " .3165 -.9085 1
"CORR " .2203 -.7562 .7870 1
"CORR " .3048 -.0478 .0253 -.1295 1
END DATA.
- ROWTYPE_ values for the mean, standard deviation, N, and Pearson correlation coefficients are abbreviated and enclosed in quotes.
Example
* ROWTYPE_ is not specified on VARIABLES.
MATRIX DATA VARIABLES=SAVINGS POP15 POP75 INCOME GROWTH
/CONTENTS=MEAN SD N CORR.
BEGIN DATA
9.6710 35.0896 2.2930 1106.7784 3.7576
4.4804 9.1517 1.2907 990.8511 2.8699
50 50 50 50 50
1
-.4555 1
.3165 -.9085 1
.2203 -.7562 .7870 1
.3048 -.0478 .0253 -.1295 1
END DATA.
- ROWTYPE_ is not
specified on
VARIABLES
, and its values are not included in the data. -
CONTENTS
is required to define the record types and the order of the records in the file.