Example: Factor Correlation Matrix Output Replacing Active Dataset (FACTOR command)

GET FILE='/data/GSS80.sav' 
  /KEEP ABDEFECT TO ABSINGLE.
FACTOR VARIABLES=ABDEFECT TO ABSINGLE
  /MATRIX OUT(COR=*).
LIST.
  • FACTOR writes the same matrix as in the previous example.
  • The active dataset is replaced with the correlation matrix. The LIST command is executed on the matrix file, not on GSS80.