2nd Level Analysis Jennifer Marchant & Tessa Dekker

Slides:



Advertisements
Similar presentations
Group analyses Wellcome Dept. of Imaging Neuroscience University College London Will Penny.
Advertisements

Hierarchical Models and
2nd level analysis in fMRI
Camilla Clark, Catherine Slattery
2nd level analysis – design matrix, contrasts and inference
2nd level analysis – design matrix, contrasts and inference
Group analysis Kherif Ferath Wellcome Trust Centre for Neuroimaging University College London SPM Course London, Oct 2010.
Basics of fMRI Group Analysis Douglas N. Greve. 2 fMRI Analysis Overview Higher Level GLM First Level GLM Analysis First Level GLM Analysis Subject 3.
Group analyses of fMRI data Methods & models for fMRI data analysis in neuroeconomics November 2010 Klaas Enno Stephan Laboratory for Social and Neural.
Classical inference and design efficiency Zurich SPM Course 2014
Multiple testing Justin Chumbley Laboratory for Social and Neural Systems Research Institute for Empirical Research in Economics University of Zurich With.
Multiple testing Justin Chumbley Laboratory for Social and Neural Systems Research Institute for Empirical Research in Economics University of Zurich With.
Group analyses Wellcome Dept. of Imaging Neuroscience University College London Will Penny.
Group analyses of fMRI data Methods & models for fMRI data analysis 28 April 2009 Klaas Enno Stephan Laboratory for Social and Neural Systems Research.
Multiple comparison correction Methods & models for fMRI data analysis 29 October 2008 Klaas Enno Stephan Branco Weiss Laboratory (BWL) Institute for Empirical.
Group analyses of fMRI data Methods & models for fMRI data analysis 26 November 2008 Klaas Enno Stephan Laboratory for Social and Neural Systems Research.
1st Level Analysis Design Matrix, Contrasts & Inference
General Linear Model & Classical Inference
General Linear Model & Classical Inference Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London SPM M/EEGCourse London, May.
2nd level analysis – design matrix, contrasts and inference
Methods for Dummies Second level analysis
With a focus on task-based analysis and SPM12
7/16/2014Wednesday Yingying Wang
Analysis of fMRI data with linear models Typical fMRI processing steps Image reconstruction Slice time correction Motion correction Temporal filtering.
SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007.
SPM Course Zurich, February 2015 Group Analyses Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London With many thanks to.
Corinne Introduction/Overview & Examples (behavioral) Giorgia functional Brain Imaging Examples, Fixed Effects Analysis vs. Random Effects Analysis Models.
Group analyses of fMRI data Methods & models for fMRI data analysis November 2012 With many thanks for slides & images to: FIL Methods group, particularly.
Bayesian Inference and Posterior Probability Maps Guillaume Flandin Wellcome Department of Imaging Neuroscience, University College London, UK SPM Course,
Wellcome Dept. of Imaging Neuroscience University College London
Contrasts & Statistical Inference
Event-related fMRI Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London SPM Course Chicago, Oct 2015.
Methods for Dummies Second level Analysis (for fMRI) Chris Hardy, Alex Fellows Expert: Guillaume Flandin.
Statistical Analysis An Introduction to MRI Physics and Analysis Michael Jay Schillaci, PhD Monday, April 7 th, 2007.
The General Linear Model Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London SPM fMRI Course London, May 2012.
1 st level analysis: Design matrix, contrasts, and inference Stephane De Brito & Fiona McNabe.
The general linear model and Statistical Parametric Mapping I: Introduction to the GLM Alexa Morcom and Stefan Kiebel, Rik Henson, Andrew Holmes & J-B.
Group Analysis ‘Ōiwi Parker Jones SPM Course, London May 2015.
Variance components Wellcome Dept. of Imaging Neuroscience Institute of Neurology, UCL, London Stefan Kiebel.
Bayesian Inference in SPM2 Will Penny K. Friston, J. Ashburner, J.-B. Poline, R. Henson, S. Kiebel, D. Glaser Wellcome Department of Imaging Neuroscience,
The General Linear Model Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London SPM fMRI Course London, October 2012.
Group Analyses Guillaume Flandin SPM Course London, October 2016
2nd Level Analysis Methods for Dummies 2010/11 - 2nd Feb 2011
Wellcome Trust Centre for Neuroimaging University College London
Random Effects Analysis
Group analyses Thanks to Will Penny for slides and content
Wellcome Trust Centre for Neuroimaging University College London
Keith Worsley Keith Worsley
Methods for Dummies Second-level Analysis (for fMRI)
Contrasts & Statistical Inference
Wellcome Dept. of Imaging Neuroscience University College London
The General Linear Model
Group analyses Thanks to Will Penny for slides and content
SPM2: Modelling and Inference
The General Linear Model
Hierarchical Models and
Wellcome Dept. of Imaging Neuroscience University College London
Methods for Dummies Second-level Analysis (for fMRI)
Contrasts & Statistical Inference
Bayesian Inference in SPM2
Wellcome Trust Centre for Neuroimaging University College London
Linear Hierarchical Models
The General Linear Model
WellcomeTrust Centre for Neuroimaging University College London
Wellcome Dept. of Imaging Neuroscience University College London
The General Linear Model
Wellcome Dept. of Imaging Neuroscience University College London
Contrasts & Statistical Inference
Wellcome Trust Centre for Neuroimaging University College London
Presentation transcript:

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

2nd Level Analysis Standard template Motion correction Smoothing kernel Spatial normalisation Standard template fMRI time-series Statistical Parametric Map General Linear Model Design matrix Parameter Estimates

Group Analysis: Fixed vs Random  In SPM known as random effects (RFX)

Group Analysis: 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

Fixed-effects Analysis in SPM multi-subject 1st level design no 2nd level each subjects entered as separate sessions create contrast across all subjects c = [ 1 -1 1 -1 1 -1 1 -1 1 -1 ] perform one sample t-test Subject 1 Subject 2 Subject 3 Subject 4 Subject 5 Multisubject 1st level : 5 subjects x 1 run each

Group analysis: Random-effects CAN make inferences about the population takes into account between-subject variance

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

Random-effects Analysis in SPM Session 1 Session 2 Session3 Session 4 Session 5 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! Subject #1 x 5 runs (1st level) Subject #2 x 5 runs (1st level) Subject #3 x 5 runs (1st level) Subject #4 x 5 runs (1st level) Subject #5 x 4 runs (1st level) 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)

2nd Level Analysis FIRST LEVEL (per person) Data Design Contrast Matrix Image SECOND LEVEL Group analysis SPM(t) One-sample t-test @ 2nd level

Stats tests at the 2nd Level 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 2 1 3 4 5 7 6 8 9 10 12 11 Group 2 Group 1

Stats tests at the 2nd Level If you have no other choice: ANOVA Designs are much more complex e.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 level c = [ 1 1 -1 -1] ; c = [ 1 -1 1 -1 ] ; c = [ 1 -1 -1 1] use separate t-tests at the 2nd level  Subject 10 Subject 11 Subject 1 Subject 2 Subject 3 Subject 4 Subject 5 Subject 6 Subject 7 Subject 8 Subject 9 Subject 12 2x2 design Ax 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]

SPM 2nd Level: How to Set-Up

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

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)

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

SPM 2nd Level: Results Click RESULTS Select your 2nd Level SPM

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

SPM 2nd Level: Results Select options for displaying result: Mask with other contrast Title Threshold (pFWE, pFDR pUNC) Size of cluster

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

2nd Level Analysis Will Penny’s SPM 2009 slides Human Brain Function, Friston et al. Methods for Dummies slides 2009