JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for SPM Archives


SPM Archives

SPM Archives


SPM@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

SPM Home

SPM Home

SPM  April 2018

SPM April 2018

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: 2 x 2 Repeated measures ANOVA

From:

Martyn Mcfarquhar <[log in to unmask]>

Reply-To:

Martyn Mcfarquhar <[log in to unmask]>

Date:

Wed, 11 Apr 2018 17:13:04 +0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (1 lines)

Hi Guillaume,



Thank you for the encouragement, I'm looking at what to do with the paper next but for now at least people in the field can provide some feedback on how useful they think the paper is.



My experience has been that often researchers want to be able to specify the full design at the 2nd-level, rather than the approach of creating effects at the 1st-level and then specifying simple models at the 2nd-level. This is particularly true in the case of mixed-measures containing within-subject factors with > 2 levels. The Henson & Penny chapter contains some rather confusing guidance on using Kronecker product rules to generate the various tests in partitioned-error models for M-way ANOVAs. I personally think this approach is more opaque than specifying multiple error-specific models at the 2nd-level, particularly as the interaction terms grow. It therefore doesn't surprise me that this doesn't appear to have caught-on with most users. It seems the desire is to be able to specify the complete design at the 2nd-level and then test and plot the various effects from within this design. This aligns with the models discussed in the statistical textbooks and, I would argue, is easier to understand conceptually compared with the Kronecker product approach. Unfortunately, when implemented in the GLM, this approach does not align with the partitioned errors which I assume most people are after, and the leap into over-parameterised designs makes the contrast weights more unintuitive. This is where I believe a lot of the discussion, confusion and issues on the list have come from. To that end, the paper has been written for users who wish to represent the complete design at the 2nd-level (in a similar vein to tools such as MRM, SwE, 3dMVM and GLM_FLEX) whilst also retaining tests using partitioned errors.



Thanks for pointing towards the Wiki, I must admit I haven't looked at it for a while. Will's explanations are nice, but again this is based on contrasts of effects at the 1st level, rather than the full factorial design at the 2nd-level. The same is true of Rik's chapter, which continues to push the confusing Kronecker product rules. I think you may be on to something with a specific option in the batch and it would be great to see this included in a future release. There is clearly a desire for something like this from the community. Ultimately, my concern is not with the approach taken (whether it is via the Kronecker rules, error-specific 2nd-level models or pooled-errors) but simply that researchers are correctly specifying the models they think they are. I dare say there are many instances of this having been done incorrectly (for instance, the Gläscher & Gitelman tutorial includes subject effects, a la partitioned errors, but then gives weights that depend on the group size for testing all effects in the same model, a la pooled errors). A suitable option in SPM for this would make a huge difference I feel, although I realise these things take time!



Best wishes

Martyn

 

-------------------------------------------------

Martyn McFarquhar, PhD

Lecturer in Neuroimaging

G30 Zochonis Building

The University of Manchester

Brunswick Street

Manchester

M13 9GB

 

+44 (0)161 306 0450

-------------------------------------------------





On 11/04/2018, 17:16, "Guillaume Flandin" <[log in to unmask]> wrote:



    Dear Martyn,

    

    Thanks for sharing your paper, that was quick - I'm sure it could be

    published as a technical note in another journal, at least you have a

    DOI now (no, I was not a reviewer).

    

    Our usual citation is the Henson&Penny book chapter you refer to:

      http://www.fil.ion.ucl.ac.uk/~wpenny/publications/rik_anova.pdf

    and Will wrote more recently some practical examples on how to implement

    the partitioned error approach:

      https://en.wikibooks.org/wiki/SPM/Group_Analysis

    There's room for improvements though and feedbacks are welcome on what

    is missing/unclear.

    

    The code attached to the post below was also meant to facilitate the

    practicalities of specifying several models by introducing a new option

    in the batch interface for partitioned models:

      https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=spm;7077f17d.1603

    

    Rik's more recent book chapter is also an interesting read:

    

    http://www.mrc-cbu.cam.ac.uk/wp-content/uploads/2015/03/Henson_EN_15_ANOVA.pdf

    

    Now, for Karina's question: it's a 2x2 within-subject design so

    everything can be tested with a simple one-sample t-test. Form the

    contrasts of interest at the first level ([1 1 1 1], [1 1 -1 -1], [1 -1

    1 -1] and [1 -1 -1 1]) and enter each of them in a separate one-sample

    t-test. That's the partitioned error approach. For the pooled error

    approach, you would proceed with the flexible factorial design and

    specify a main effect of factor 1 and an interaction with factors 2 and

    3. The contrast for the time by self interaction would then be [1 -1 -1

    1 0 ... 0].

    

    Best regards,

    Guillaume.

    

    

    On 11/04/18 12:14, Martyn Mcfarquhar wrote:

    > Dear Samantha,

    > 

    >  

    > 

    > Thank you very much. The paper is now available as a preprint on

    > PsyArXiv for anyone who wishes to read it: https://psyarxiv.com/a5469

    > 

    >  

    > 

    > Best wishes

    > 

    > Martyn

    > 

    >  

    > 

    > -------------------------------------------------

    > 

    > Martyn McFarquhar, PhD

    > 

    > Lecturer in Neuroimaging

    > 

    > G30 Zochonis Building

    > 

    > The University of Manchester

    > 

    > Brunswick Street

    > 

    > Manchester

    > 

    > M13 9GB

    > 

    >  

    > 

    > +44 (0)161 306 0450

    > 

    > -------------------------------------------------

    > 

    >  

    > 

    >  

    > 

    > *From: *Samantha Brooks <[log in to unmask]>

    > *Date: *Wednesday, 11 April 2018 at 10:10

    > *To: *Martyn Mcfarquhar <[log in to unmask]>

    > *Cc: *"[log in to unmask]" <[log in to unmask]>

    > *Subject: *Re: [SPM] 2 x 2 Repeated measures ANOVA

    > 

    >  

    > 

    > Dear Martyn,

    > 

    >  

    > 

    > Your aforementioned paper would indeed be an asset to the imaging

    > community - we too are having various discussions about modeling a

    > complex ANOVA at first level in SPM.

    > 

    >  

    > 

    > Looking forward to reading your paper,

    > 

    >  

    > 

    > Best regards,

    > 

    > 

    > Samantha

    > 

    > 

    > _______________

    > 

    > Dr Samantha Brooks, Ph.D (Download

    > Website)<http://www.drsamanthabrooks.com/> 

    > 

    > Dept. of Psychiatry,

    > 

    > J2 Building, Groote Schuur Hospital

    > 

    > Anzio Road

    > 

    > Observatory

    > 

    > Cape Town

    > 

    >  

    > 

    > On Wed, Apr 11, 2018 at 10:51 AM, Martyn McFarquhar

    > <[log in to unmask]<mailto:[log in to unmask]>>

    > wrote:

    > 

    >     Hi Karina,

    > 

    >     Adding the main effects and interactions in the flexible factorial

    >     module only adds these effects to the design matrix, it doesn't

    >     create the contrasts for those effects. I'll discuss creating the

    >     contrasts separately below, but in terms of your design being a 2 x

    >     2 fully within-subject, you will need multiple models to calculate

    >     the F-statistics using the correct error term. For instance, your

    >     effects are:

    > 

    >     Main effect of time: needs a model containing Time and Subject after

    >     averaging over Self

    >     Main effect of self: needs a model containing Self and Subject after

    >     averaging over Time

    >     Time x Self: needs a model containing Time, Self, Time x Self,

    >     Subject, Time x Subject and Self x Subject

    > 

    >     The contrasts are another matter because of the necessity of

    >     creating estimable functions of the parameters in overparameterised

    >     designs. In unbalanced designs this is particularly tricky given

    >     that most people are after the standard Type III sums-of-squares.

    > 

    >     Because this is such a common issue on the list, I have actually

    >     written a paper going over the how and the why of both of these

    >     issues, with an example in SPM. I submitted it to NeuroImage, but

    >     the reviewers came back stating that none of it was new and no one

    >     would find it useful. Not that I'm bitter, but it'd be nice to

    >     actually know that some people would find it useful! I'm planning to

    >     put it up as a preprint on arXiv, but I'll send you the current

    >     draft separately. I hope it will help answer your questions and help

    >     you understand what you need to do.

    > 

    >     Best wishes

    >     Martyn

    > 

    >     -------------------------------------------------

    >     Martyn McFarquhar, PhD

    >     Lecturer in Neuroimaging

    >     G30 Zochonis Building

    >     The University of Manchester

    >     Brunswick Street

    >     Manchester

    >     M13 9GB

    > 

    >     +44 (0)161 306 0450

    >     -------------------------------------------------

    > 

    >  

    > 

    

    -- 

    Guillaume Flandin, PhD

    Wellcome Trust Centre for Neuroimaging

    University College London

    12 Queen Square

    London WC1N 3BG

    



Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
2006
2005
2004
2003
2002
2001
2000
1999
1998


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager