Introduction & Practice Data File
When running correlations in SPSS, we get the p-values as well. In some cases, we don't want that: if our data hold an entire population, such p-values are actually nonsensical. For some stupid reason, we can't get correlations without significance levels from the correlations dialog. However, this tutorial shows 2 ways for getting them anyway. We'll use adolescents-clean.sav throughout.
![Correlation Matrix in APA Format](https://spss-tutorials.com/img/APA-format-correlation-table.png)
Option 1: FACTOR
A reasonable option is navigating to
as shown below.
![SPSS Factor Analysis Menu](https://spss-tutorials.com/img/spss-factor-analysis-menu.png)
Next, we'll move iq through wellb into the variables box and follow the steps outlines in the next screenshot.
![SPSS Correlation Matrix From Factor](https://spss-tutorials.com/img/spss-factor-dialog-correlation-matrix.png)
Clicking syntax below. It'll create a correlation matrix without significance levels or sample sizes. Note that FACTOR uses listwise deletion of missing values by default but we can easily change this to pairwise deletion. Also, we can shorten the syntax quite a bit in case we need more than one correlation matrix.
results in theCorrelation Matrix from FACTOR Syntax
FACTOR
/VARIABLES iq depr anxi soci wellb
/MISSING pairwise /* WATCH OUT HERE: DEFAULT IS LISTWISE! */
/ANALYSIS iq depr anxi soci wellb
/PRINT CORRELATION EXTRACTION
/CRITERIA MINEIGEN(1) ITERATE(25)
/EXTRACTION PC
/ROTATION NOROTATE
/METHOD=CORRELATION.
*Can be shortened to...
factor
/variables iq to wellb
/missing pairwise
/print correlation.
*...or even...
factor
/variables iq to wellb
/print correlation.
*but this last version uses listwise deletion of missing values.
Result
![SPSS Correlation Matrix From Factor Command](https://spss-tutorials.com/img/spss-correlation-matrix-from-factor-command.png)
When using pairwise deletion, we no longer see the sample sizes used for each correlation. We may not want those in our table but perhaps we'd like to say something about them in our table title.
More importantly, we've no idea which correlations are statistically significant and which aren't. Our second approach deals nicely with both issues.
Option 2: Adjust Default Correlation Table
The fastest way to create correlations is simply running correlations iq to wellb. However, we sometimes want to have statistically significant correlations flagged. We'll do so by adding just one line.
correlations iq to wellb
/print nosig.
This results in a standard correlation matrix with all sample sizes and p-values. However, we'll now make everything except the actual correlations invisible.
Adjusting Our Pivot Table Structure
We first right-click our correlation table and navigate to
as shown below.
![SPSS Pivot Table Manager](https://spss-tutorials.com/img/spss-pivot-table-manager.png)
Select
from the menu.![SPSS Pivoting Trays Menu](https://spss-tutorials.com/img/spss-pivoting-trays-menu.png)
Drag and drop the Statistics (row) dimension into the LAYER area and close the pivot editor.
![SPSS Pivoting Trays](https://spss-tutorials.com/img/spss-pivoting-trays.png)
Result
![SPSS Correlation Matrix Without Significance Final Result](https://spss-tutorials.com/img/spss-correlation-matrix-without-significance-final-result.png)
Same Results Faster?
If you like the final result, you may wonder if there's a faster way to accomplish it. Well, there is: the Python syntax below makes the adjustment on all pivot tables in your output. So make sure there's only correlation tables in your output before running it. It may crash otherwise.
begin program.
import SpssClient
SpssClient.StartClient()
oDoc = SpssClient.GetDesignatedOutputDoc()
oItems = oDoc.GetOutputItems()
for index in range(oItems.Size()):
oItem = oItems.GetItemAt(oItems.Size() - index - 1)
if oItem.GetType() == SpssClient.OutputItemType.PIVOT:
pTable = oItem.GetSpecificType()
pManager = pTable.PivotManager()
nRows = pManager.GetNumRowDimensions()
rDim = pManager.GetRowDimension(0)
rDim.MoveToLayer(0)
SpssClient.StopClient()
end program.
Well, that's it. Hope you liked this tutorial and my script -I actually run it from my toolbar pretty often.
Thanks for reading!
THIS TUTORIAL HAS 13 COMMENTS:
By Jon Peck on February 14th, 2018
The SPSSINC MODIFY TABLES extension command has a companion plug-in function that appears on the menus as Utilities > Format Correlation Matrix. It has options to hide cell counts, to hide the upper triangle, to hide insignificant correlations, to bold significant correlations, and to highlight large correlations. It can
By Ruben Geert van den Berg on February 15th, 2018
Hi Jon!
That sounds interesting, I'll look into that. It seems part of your comment wasn't pasted as it ends rather abruptly. If you had wanted to add some more suggestions, please do add them.
By Jon Peck on February 15th, 2018
... It can be applied to the previous correlation matrix or to all in the Viewer of the expected type. You need to install SPSSINC MODIFY TABLES as well as this custom dialog from the Extensions or Utilities menu if they are not already present.
By Ruben Geert van den Berg on February 15th, 2018
...thanks Jon! I'm going to try it out this weekend!
By Jitendra yadav on February 19th, 2018
When I first learnt about the correlation coefficient, I found it challenging to truly grok what a particular value meant. Learning the standard interpretation was easy. The challenging part was understanding the practical and theoretical implications for a correlation