VARIABLES Subcommand (NONPAR CORR command)
VARIABLES
specifies the variable list.
- All variables must be numeric.
- If keyword
WITH
is not used,NONPAR CORR
displays 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 CORR
writes a rectangular matrix of variables in the first list correlated with variables in the second list. - Keyword
WITH
cannot be used when theMATRIX
subcommand 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 varlist2
is 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
WITH
define the rows; the three variables that are listed afterWITH
define the columns of the correlation matrix. - Spearman’s rho is displayed by default.
NONPAR CORR VARIABLES=SPPRES PAPRES16 PRESTIGE
/SATCITY WITH SATHOBBY SATFAM.
-
NONPAR CORR
produces two Correlations tables. - By default, Spearman’s rho is displayed.