The CORRELATION Procedure

WITH Statement

  • WITH variables;

The WITH statement lists variables for which to compute correlation coefficients. The WITH statement requests correlations of the form , where are the row analysis variables that are specified in the WITH statement and are the column analysis variables that are specified in the VAR statement; or, if there is no VAR statement, all numeric variables that are not specified in any other statement. The correlation matrix has a rectangular structure of the form

For example, the statements

proc correlation data=mycas.data;
   var x1 x2;
   with y1 y2 y3;
run;

produce correlations for the following combinations:

Last updated: December 21, 2018