This procedure calculates correlations between nominal, ordinal, and scale variables, accounting for the measurement levels of the variables. The resulting heterogeneous correlation matrix consists of Pearson product-moment correlations between scale variables, polyserial correlations between scale and categorical variables, and polychoric correlations between categorical variables.
- IBM SPSS Statistics 18 or later, the corresponding IBM SPSS Statistics-Integration Plug-in for Python and the IBM SPSS Statistics-Integration Plug-in for R.
Note: The SPSSINC HETCOR extension is installed as part of IBM SPSS Statistics-Essentials for R.
- Open IBM SPSS Statistics
- Navigate to Utilities -> Extension Bundles -> Download and Install Extension Bundles
- Search for the name of the extension and click Ok. Your extension will be available.
Analyze →
Correlate →
Heterogeneous Correlations...
SPSSINC HETCOR variables^*
/OPTIONS ESTIMATOR=TWOSTEP^** or ML
STDERR=TRUE^** or FALSE
N=TRUE^** or FALSE
TYPE=TRUE^** or FALSE
MISSING=PAIRWISE^** or LISTWISE
EXECUTE=TRUE^** or FALSE
/SAVE PROGRAMFILE="filespec"
^* Required
^** Default
SPSSINC HETCOR /HELP prints this information and does nothing else.
Split files and weight are not honored by this command.
Example:
SPSSINC HETCOR var1 var2 var3 /OPTIONS STDERR=TRUE.
The variable list specifies the variables to be correlated. The type of correlation is determined by the measurement levels of each pair of variables.
ESTIMATOR specifies the estimator. TWOSTEP may execute considerably faster and is the default. ML can fail to converge in some cases.
STDERR=TRUE causes a standard error to be included in the output.
N=TRUE causes the count for each correlation to be displayed. It is ignored if STDERR=FALSE.
TYPE=TRUE causes a separate table of the correlation types to be displayed.
EXECUTE=FALSE processes the command syntax but does not execute it. This is mainly useful in combination with SAVE PROGRAMFILE.
PROGRAMFILE causes the R code that implements the hetcor function to be written to the specified file.
The SPSSINC HETCOR command requires both the Python and R Integration Plug-ins. package.
- IBM SPSS