IMSTAT Procedure (Analytics)

CORR Statement

The CORR statement is used to calculate a matrix of pairwise correlations of numeric variables in an in-memory table.

Performing a Pairwise Correlation

Syntax

CORR <variable-list> </ options>;

Optional Argument

variable-list

specifies one or more numeric variables. If you do not specify this option, then all numeric variables in the table are used.

CORR Statement Options

SAVE=table-name

saves the result table so that you can use it in other IMSTAT procedure statements like STORE, REPLAY, and FREE. The value for table-name must be unique within the scope of the procedure execution. The name of a table that has been freed with the FREE statement can be used again in subsequent SAVE= options.

TEMPEXPRESS="SAS-expressions"

TEMPEXPRESS=file-reference

specifies either a quoted string that contains the SAS expression that defines the temporary variables or a file reference to an external file with the SAS statements.

Alias TE=

TEMPNAMES=variable-name

TEMPNAMES=(variable-list)

specifies the list of temporary variables for the request. Each temporary variable must be defined through SAS statements that you supply with the TEMPEXPRESS= option.

Alias TN=

Details

ODS Table Names

The CORR statement generates the following ODS table.
ODS Table Name
Description
Option
Correlation
Matrix of pairwise correlations
Default
For information about using the ODS table with SAVE= option, see the Details section of the STORE statement.