• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!


Using SPM for Correlations

Page history last edited by PBworks 15 years, 3 months ago

Creation of SPM.mat file:


1) Create Notepad file containing the scores of each subject from one behavioral test. If you are using multiple behavioral tests make separate notepad files for each test.

2) Open SPM using PET and SPECT option

3) Go to Matlab terminal and type x=load('path to directory with Notepad file with group assignments')

4) Enter

5) Back in SPM click Basic Models

6) Select Simple Regression (Correlation)

7) Select all subject images

8) When prompted type x

9) Select no grand mean scaling

10) Threshold masking: None

Choices: None, absolute, relative

11) "Implicit Mask (ignore 0's)?" Choose YES

12) "Explicitly Mask Images?" Choose yes or no depending on use of mask

13) Global Calculation None or omit

14) Save resulting image as .jpg or .pdf




1) In SPM press Estimate

2) Locate and select SPM.mat (this file was created in the process above - if this file was not saved in the directory you originally wanted this can be changed in SPM by clicking Utils and selecting cd and choosing your new directory)

3) Press Results

4) Select SPM.mat

5) Click t-contrasts

6) Define new contrasts at bottom of window

7) Title your analysis

8) Select t-contrast

9) In box type either 1 0 for positive correlations or -1 0 for negative correlations.

10) Mask with other contrasts: No

11) Type in title

12) Enter

13) P-value adjustment select default

* Default = NONE; Choices: None, FWE, FDR

14) You can select the default choice for the rest of the options as listed below or you can enter in different numerical values by clicking in the box and typing

* Threshold (T or P Value) = 0.001

* Extent Threshold (voxels) = 0

15) Once page shows up in bottom left hand window click volume under p-values - this should provide you with a table of all clusters and their p-values

Comments (0)

You don't have permission to comment on this page.