Modelling parametric responses¶
Parametric modulators¶
Before setting up the design matrix, we must first load into MATLAB the
Stimulus Onsets Times (SOTs), as before, and also the “Lags”, which are
specific to this experiment, and which will be used as parametric
modulators. The Lags code, for each second presentation of a face (N2
and F2), the number of other faces intervening between this (repeated)
presentation and its previous (first) presentation. Both SOTs and Lags
are represented by MATLAB cell arrays, stored in the sots.mat
file.
- At the MATLAB command prompt type
load sots
. This loads the stimulus onset times and the lags (the latter in a cell array calleditemlag
.
Model specification¶
Now press the Specify 1st-level
button.
This will call up the specification of a fMRI specification job in the
batch editor window. Then:
-
Press
File
andLoad batch
, select thecategorical_spec.mat
job file you created earlier. -
Open
Conditions
and then open the secondCondition
. -
Highlight
Parametric Modulations
, selectNew Parameter
. -
Highlight
Name
and enterLag
, highlight values and enteritemlag{2}
, highlight polynomial expansion and2nd order
. -
Now open the fourth
Condition
underConditions
. -
Highlight
Parametric Modulations
, selectNew Parameter
. -
Highlight
Name
and enterLag
, highlightvalues
and enteritemlag{4}
, highlightpolynomial expansion
and2nd order
. -
Open
Canonical HRF
underBasis Functions
, highlightModel derivatives
and selectNo derivatives
(to make the design matrix a bit simpler for present purposes!). -
Highlight
Directory
and selectDIR/parametric
(having “unselected” the current definition of directory from the Categorical analysis). -
Save the job as
parametric_spec
and press theRun
button.
This should produce the design matrix shown below.
Model estimation¶
Press the Estimate
button. This will call
up the specification of an fMRI estimation job in the batch editor
window. Then
-
Highlight the
Select SPM.mat
option and then choose theSPM.mat
file saved in theDIR/parametric
directory. -
Save the job as
parametric_est.job
and press theRun
button.
SPM will write a number of files into the selected directory including
an SPM.mat
file.
Plotting parametric responses¶
We will look at the effect of lag (up to second order, ie using linear and quadratic terms) on the response to repeated Famous faces, within those regions generally activated by faces versus baseline. To do this
-
Press
Results
and select theSPM.mat
file in theDIR/parametric
directory. -
Press
Define new contrast
, enter the nameFamous Lag
, press theF-contrast
radio button, enter1:6 9:15
in thecolumns in reduced design
window, presssubmit
,OK
andDone
. -
Select the
Famous Lag
contrast. -
Apply masking ? [None/Contrast/Image]
- Specify
Contrast
.
- Specify
-
Select the
Positive Effect of Condition 1
T contrast.- Change to an
0.05
uncorrected mask p-value.
- Change to an
-
Nature of Mask ?
inclusive
. -
p value adjustment to control: [FWE/none]
- Select
None
.
- Select
-
Threshold {F or p value}
- Accept the default value,
0.001
.
- Accept the default value,
-
Extent threshold {voxels} [0]
- Accept the default value,
0
.
- Accept the default value,
The figure below shows the MIP and an overlay of
this parametric effect using overlays, sections and selecting the
wmsM03953_0007.nii
image.
To plot the effect in the time domain:
-
Right clicking on the MIP and selecting
global maxima
. -
Pressing
Plot
, and selectingparametric responses
from the pull-down menu. -
Which effect ? select
F2
.
This shows a quadratic effect of lag, in which the response appears negative for short-lags, but positive and maximal for lags of about 40 intervening faces (note that this is a very approximate fit, since there are not many trials, and is also confounded by time during the session, since longer lags necessarily occur later (for further discussion of this issue, see the SPM2 example analysis of these data on the webpage).