The following statements are available in PROC CORR:
PROC CORR
<options> ;
BY
variables ;
FREQ
variable ;
ID
variables ;
PARTIAL
variables ;
VAR
variables ;
WEIGHT
variable ;
WITH
variables ;
The BY statement specifies groups in which separate correlation analyses are performed.
The FREQ statement specifies the variable that represents the frequency of occurrence for other values in the observation.
The ID statement specifies one or more additional tip variables to identify observations in scatter plots and scatter plot matrices.
The PARTIAL statement identifies controlling variables to compute Pearson, Spearman, or Kendall partial-correlation coefficients.
The VAR statement lists the numeric variables to be analyzed and their order in the correlation matrix. If you omit the VAR statement, all numeric variables not listed in other statements are used.
The WEIGHT statement identifies the variable whose values weight each observation to compute Pearson product-moment correlation.
The WITH statement lists the numeric variables with which correlations are to be computed.
The PROC CORR statement is the only required statement for the CORR procedure. The rest of this section provides detailed syntax information for each of these statements, beginning with the PROC CORR statement. The remaining statements are presented in alphabetical order.