The CORR Procedure

WITH Statement

  • WITH variables;

The WITH statement lists variables with which correlations of the VAR statement variables are to be computed. The WITH statement requests correlations of the form r left-parenthesis upper X Subscript i Baseline comma upper Y Subscript j Baseline right-parenthesis, where upper X 1 comma ellipsis comma upper X Subscript m Baseline are analysis variables specified in the VAR statement, and upper Y 1 comma ellipsis comma upper Y Subscript n Baseline are variables specified in the WITH statement. The correlation matrix has a rectangular structure of the form

For example, the statements

proc corr;
   var x1 x2;
   with y1 y2 y3;
run;

produce correlations for the following combinations:

Last updated: November 25, 2020