2 nd level analysis jennifer marchant & tessa dekker methods for dummies 2010

20
2 nd Level Analysis Jennifer Marchant & Tessa Dekker Methods for Dummies 2010

Upload: gilbert-welch

Post on 15-Jan-2016

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 2 nd Level Analysis Jennifer Marchant & Tessa Dekker Methods for Dummies 2010

2nd Level Analysis

Jennifer Marchant & Tessa Dekker

Methods for Dummies 2010

Page 2: 2 nd Level Analysis Jennifer Marchant & Tessa Dekker Methods for Dummies 2010

2nd Level Analysis

Motioncorrection

Smoothing

kernel

Spatialnormalisation

Standardtemplate

fMRI time-seriesStatistical Parametric Map

General Linear Model

Design matrix

Parameter Estimates

Page 3: 2 nd Level Analysis Jennifer Marchant & Tessa Dekker Methods for Dummies 2010

Group Analysis: Fixed vs Random

In SPM known as random effects (RFX)

Page 4: 2 nd Level Analysis Jennifer Marchant & Tessa Dekker Methods for Dummies 2010

Group Analysis: Fixed-effects

Fixed-effects• specific to cases in your study• can NOT make inferences about the population• only takes into account within-subject variance • useful if only have a few subjects (eg case studies)

Because between subject variance not considered, you may get larger effects

Page 5: 2 nd Level Analysis Jennifer Marchant & Tessa Dekker Methods for Dummies 2010

Fixed-effects Analysis in SPM

Fixed-effects• multi-subject 1st level design • no 2nd level• each subjects entered as

separate sessions• create contrast across all

subjectsc = [ 1 -1 1 -1 1 -1 1 -1 1 -1 ]

• perform one sample t-test

)ˆ(ˆ

ˆ

β

βT

T

craV

ct=

Subject 1

Subject 2

Subject 3

Subject 4

Subject 5

Page 6: 2 nd Level Analysis Jennifer Marchant & Tessa Dekker Methods for Dummies 2010

Group analysis: Random-effects

Random-effects • CAN make inferences about the population• takes into account between-subject variance

Page 7: 2 nd Level Analysis Jennifer Marchant & Tessa Dekker Methods for Dummies 2010

Methods for Random-effects

Hierarchical model• Estimates subject & group stats at once• Variance of population mean contains contributions

from within- & between- subject variance• Iterative looping computationally demanding

Summary statistics approach SPM uses this!• 2 levels (1 = within-subject ; 2 = between-subject)• 1st level design must be the SAME• Sample means brought forward to 2nd level• Computationally less demanding• Good approximation, unless subject extreme outlier

Friston et al. (2004) Mixed effects and fMRI studies, Neuroimage

Friston et al. (2004) Mixed effects and fMRI studies, Neuroimage

Page 8: 2 nd Level Analysis Jennifer Marchant & Tessa Dekker Methods for Dummies 2010

Random-effects Analysis in SPM

Random-effects• 1st level design per subject • generate contrast image per

subject (con.*img)• images MUST have same

dimensions & voxel sizes• con*.img for each subject

entered in 2nd level analysis• perform stats test at 2nd level

NOTE: if 1 subject has 4 sessions but everyone else has 5, you need adjust your contrast!

contrast = [ 1 -1 1 -1 1 -1 1 -1 1 -1 ]

contrast = [ 1 -1 1 -1 1 -1 1 -1 1 -1 ]

contrast = [ 1 -1 1 -1 1 -1 1 -1 1 -1 ]

contrast = [ 1 -1 1 -1 1 -1 1 -1 1 -1 ]

contrast = [ 1 -1 1 -1 1 -1 1 -1 ] * (5/4)

Session 1

Session 2

Session3

Session 4

Session 5

Page 9: 2 nd Level Analysis Jennifer Marchant & Tessa Dekker Methods for Dummies 2010

2nd Level Analysis

FIRST LEVEL (per person)Data Design Contrast

Matrix Image

SECOND LEVELGroup analysis

1α̂

2α̂

11α̂

12α̂

21σ̂

22σ̂

211σ̂

212σ̂

)ˆ(ˆ

ˆ

ααT

T

craV

ct=

SPM(t)

One-samplet-test @ 2nd level

One-samplet-test @ 2nd level

Page 10: 2 nd Level Analysis Jennifer Marchant & Tessa Dekker Methods for Dummies 2010

Choose the simplest analysis @ 2nd level : one sample t-test

– Compute within-subject contrasts @ 1st level– Enter con*.img for each person– Can also model covariates across the group

- vector containing 1 value per con*.img,

If you have 2 subject groups: two sample t-test– Same design matrices for all subjects in a group– Enter con*.img for each group member– Not necessary to have same no. subject in each group– Assume measurement independent between groups– Assume unequal variance between each group

Stats tests at the 2nd Level

123456789

101112123456789

101112

Gro

up

2

Gro

up

1

Page 11: 2 nd Level Analysis Jennifer Marchant & Tessa Dekker Methods for Dummies 2010

Stats tests at the 2nd Level

If you have no other choice: ANOVA

• Designs are much more complexe.g. within-subject ANOVA need covariate per subject

• BEWARE sphericity assumptions may be violated, need to account for

• Better approach:– generate main effects & interaction

contrasts at 1st levelc = [ 1 1 -1 -1] ; c = [ 1 -1 1 -1 ] ; c = [ 1 -1 -1 1]

– use separate t-tests at the 2nd level

Sub

ject

1S

ubje

ct 2

Sub

ject

3S

ubje

ct 4

Sub

ject

5S

ubje

ct 6

Sub

ject

7S

ubje

ct 8

Sub

ject

9S

ubje

ct 1

0S

ubje

ct 1

1S

ubje

ct 1

2

2x2 designAx Ao Bx Bo

One sample t-test equivalents:

A>B x>o A(x>o)>B(x>o)con.*imgs con.*imgs con.*imgs c = [ 1 1 -1 -1] c= [ 1 -1 1 -1] c = [ 1 -1 -1 1]

Page 12: 2 nd Level Analysis Jennifer Marchant & Tessa Dekker Methods for Dummies 2010

SPM 2nd Level: How to Set-Up

Page 13: 2 nd Level Analysis Jennifer Marchant & Tessa Dekker Methods for Dummies 2010

SPM 2nd Level: Set-Up Options

Directory- select directory to write out SPM

Design - select 1st level con.*img- several design types

- one sample t-test- two sample t-test- paired t-test- multiple regression- full or flexible factorial

- additional options for PET only- grand mean scaling- ANCOVA

Page 14: 2 nd Level Analysis Jennifer Marchant & Tessa Dekker Methods for Dummies 2010

SPM 2nd Level: Set-Up Options

Covariates- covariates & nuisance variables- 1 value per con*.img

Options:- Vector (X-by-1 array)- Name (string)- Interaction

- Centring

Masking - 3 masks types:

- threshold (voxel > threshold used)

- implicit (voxels = ?? are excluded)

- explicit (image for implicit mask)

Page 15: 2 nd Level Analysis Jennifer Marchant & Tessa Dekker Methods for Dummies 2010

SPM 2nd Level: Set-Up Options

Global calculation for PET only

Global normalisation for PET only

Specify 2nd level Set-Up↓

Save 2nd level Set-Up↓

Run analysis↓

Look at the RESULTS

Page 16: 2 nd Level Analysis Jennifer Marchant & Tessa Dekker Methods for Dummies 2010

SPM 2nd Level: Results

• Click RESULTS• Select your 2nd Level SPM• Click RESULTS• Select your 2nd Level SPM

Page 17: 2 nd Level Analysis Jennifer Marchant & Tessa Dekker Methods for Dummies 2010

SPM 2nd Level: Results

2nd level one sample t-test

• Select t-contrast• Define new contrast ….

• c = +1 (e.g. A>B)• c = -1 (e.g. B>A)

• Select desired contrast

1 row per con*.img

Page 18: 2 nd Level Analysis Jennifer Marchant & Tessa Dekker Methods for Dummies 2010

SPM 2nd Level: Results

• Select options for displaying result:• Mask with other contrast• Title• Threshold (pFWE, pFDR pUNC)• Size of cluster

Page 19: 2 nd Level Analysis Jennifer Marchant & Tessa Dekker Methods for Dummies 2010

SPM 2nd Level: Results

Here are your results!!!

Now you can do lots of things:• Table of results [whole brain]• Look at t-value for a voxel of choice• Display results on anatomy [ overlays ]

• SPM templates• mean of subjects

• Small Volume Correct• significant voxels in a small search area ↑ pFWE

1 row per con*.img

Page 20: 2 nd Level Analysis Jennifer Marchant & Tessa Dekker Methods for Dummies 2010

2nd Level Analysis

Will Penny’s SPM 2009 slides

Methods for Dummies slides 2009

Human Brain Function, Friston et al.