VARIABLES Subcommand (NONPAR CORR command)
VARIABLES specifies the variable list.
- All variables must be numeric.
- If keyword
WITHis not used,NONPAR CORRdisplays the correlations of each variable with every other variable in the list. - To obtain a rectangular matrix, specify two variable
lists that are separated by keyword
WITH.NONPAR CORRwrites a rectangular matrix of variables in the first list correlated with variables in the second list. - Keyword
WITHcannot be used when theMATRIXsubcommand is used. - You can request more than one analysis. Use a slash to separate the specifications for each analysis.
- When only varlist1 is specified,
the confidence limits are estimated for each different pair of the variables contained within
varlist1. When
varlist1 WITH varlist2is specified, the confidence limits are estimated for each different pair of the variables with one contained within varlist1 and the other varlist2. The confidence limits of the pair containing a variable and itself are not estimated.
Examples
NONPAR CORR
VARIABLES = PRESTIGE SPPRES PAPRES16 WITH DEGREE PADEG MADEG.
- The three variables that are listed before
WITHdefine the rows; the three variables that are listed afterWITHdefine the columns of the correlation matrix. - Spearman’s rho is displayed by default.
NONPAR CORR VARIABLES=SPPRES PAPRES16 PRESTIGE
/SATCITY WITH SATHOBBY SATFAM.
-
NONPAR CORRproduces two Correlations tables. - By default, Spearman’s rho is displayed.