Examples (NONPAR CORR command)
Writing results to a matrix data file
GET FILE='/data/GSS80.sav'
/KEEP PRESTIGE SPPRES PAPRES16 DEGREE PADEG MADEG.
NONPAR CORR VARIABLES=PRESTIGE TO MADEG
/MATRIX OUT('/data/npmat.sav').
-
NONPAR CORR
reads data from file GSS80.sav and writes one set of correlation matrix materials to the file npmat.sav. - The active dataset is still GSS80.sav. Subsequent commands are executed on file GSS80.sav.
Replacing the active dataset with matrix results
GET FILE='/data/GSS80.sav'
/KEEP PRESTIGE SPPRES PAPRES16 DEGREE PADEG MADEG.
NONPAR CORR VARIABLES=PRESTIGE TO MADEG
/MATRIX OUT(*).
LIST.
DISPLAY DICTIONARY.
-
NONPAR CORR
writes the same matrix as in the example above. However, the matrix data file replaces the active dataset. TheLIST
andDISPLAY
commands are executed on the matrix file (not on the original active dataset GSS80.sav).