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

Help for FSL Archives


FSL Archives

FSL Archives


FSL@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

FSL Home

FSL Home

FSL  August 2022

FSL August 2022

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: PALM repeated measures anova F-test question

From:

Matthew Webster <[log in to unmask]>

Reply-To:

FSL - FMRIB's Software Library <[log in to unmask]>

Date:

Wed, 10 Aug 2022 20:49:42 +0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (1 lines)

Dear Julia,

		 If I understand your analysis correctly, you have two groups, each having a different number of conditions, and for each group you want to test if each of its conditions.display a positive or negative effect.



The simplest approach here is to split your data by both group and condition and run a one-sample t-test ( similar to design_a1 from Anderson’s reply in the linked thread ), the command line would then be ( e.g. for group A )



palm -I A1.<ext> -i A2.<ext> -d design_a1.csv -t contrasts_a1.csv -ise -n 5000 -logp [blah]



With contrasts_a1.csv defining both positive and negative contrasts.



Add -corrmod to correct across conditions, -corrcon to correct across contrasts.



I’m not sure how you’re defining “group effect” here, e.g. the average across all conditions?



Note NPC may not explicitly be needed in this case ( Anderson would be able to clarify ). 



2) For the second question, the same logic will apply ( it’s just a change in storage format )



Hope this helps,

Kind Regards

Matthew

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

Dr Matthew Webster

FMRIB Centre 

John Radcliffe Hospital design 

University of Oxford



> On 5 Aug 2022, at 08:37, Hye Min Shin <[log in to unmask]> wrote:

> 

> Thank you for the response Matthew. 

> 

> So if I still want to NPC by still correct over both hemispheres, can I merge lh and rh into bh using palm_hemimerge and then split them later using palm_hemisplit as discussed in this thread: https://jiscmail.ac.uk/cgi-bin/webadmin?A2=FSL;42baf4dd.1608 

> 

> I also have a couple more questions if that is ok:

> 

> 1) After going through the repeated measures anova tutorial, I wanted to try to apply PALM NPC in my analysis. I have 2 groups with group A having 2 conditions (A1 and A2) and another group B with 3 conditions (B1,B2,B3). I ran all 5 conditions on each subject. At first I just wanted to analyze them by having 10 t-tests and 2 F-contrasts (looking for the effect of group A and the effect of group B) then correcting for multiple comparisons using PALM/NPC. Would this be a good choice for my analysis? 

> 

> I also considered using NPC to combine within-subject and between-subject models after reading this thread: https://jiscmail.ac.uk/cgi-bin/wa-jisc.exe?A2=ind1801&L=FSL&P=R60203&K=2

> 

> I thought this would be more appropriate for my analysis but with how my conditions are set up, it looks unfeasible since I do not have blocks with the same size for whole-block EB. 

> 

> My initial idea for within block and whole block EB is the following:

> 1 -subject 1 A1

> 1 -subject 1 A2

> 1 -subject 2 A1

> 1 -subject 2 A2

> 2 -subject 1 B1

> 2 -subject 1 B2

> 2 -subject 1 B3

> 2 -subject 2 B1

> 2 -subject 2 B2

> 2 -subject 2 B3

> 

> So would it be better to just stick with 10 t-tests and 2 F-tests using NPC? 

> 

> 

> 2) If I can go ahead with this joint NPC analysis, can I also use this on subcortical data? 

> 

> Sorry for these additional questions- your responses were very helpful to understand PALM/NPC and how I should analyze my study. 

> 

> Thank you in advance,

> Julia Shin 

> 

> On Tue, Aug 2, 2022 at 3:37 AM Matthew Webster <[log in to unmask]> wrote:

> Hello Julia,

> Note NPC should not be used here as it requires all inputs to be aligned - and by definition the left and right hemispheres are un-aligned. The -corrcon and -corrmod options can still be used to correct over both hemispheres ( “modalities” ) and contrasts though.

> 

> Kind Regards

> Matthew

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

> Dr Matthew Webster

> FMRIB Centre 

> John Radcliffe Hospital

> University of Oxford

> 

>> On 29 Jul 2022, at 14:00, Hye Min Shin <[log in to unmask]> wrote:

>> 

>> No problem- I was able to successfully run the F-test using PALM with npc. 

>> 

>> So if I also wanted to correct for both right and left hemispheres while applying npc to correct for contrasts can I add "-corrmod" and "-npccon" to my palm command? For a repeated measures design like the one is FreeSurfer tutorial, would it be ok to only apply npc to correct for contrasts? Or do I also have to add "-corrcon" to correct for contrasts AND add "-npccon". 

>> 

>> The command would look like the following (as also noted in this tread- https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=FSL;42baf4dd.1608):

>> 

>> palm -i lh.thickness.sm15.mgh -i rh.thickness.sm15.mgh -m lh/mask.mgh -m rh/mask.mgh -d design.mat -t design.con -f design.fts 

>>           -n 5000 -T -npc -corrmod -npccon -logp -approx tail -nouncorrected

>> 

>> Best,

>> Julia Shin

>> 

>> On Wed, Jul 27, 2022 at 9:28 PM Matthew Webster <[log in to unmask]> wrote:

>> Hello Julia,

>> Ah - my mistake! The F-test is on the _first_ two t-contrasts so the F-contrast should be 1 1 0 0 as you say.

>> 

>> Kind Regards

>> Matthew

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

>> Dr Matthew Webster

>> FMRIB Centre 

>> John Radcliffe Hospital

>> University of Oxford

>> 

>>> On 27 Jul 2022, at 13:18, Hye Min Shin <[log in to unmask]> wrote:

>>> 

>>> I apologize for sending this email again- I originally responded to Matthew's email from JISCM@il site and since I can't see the message thread I am posting my response through my school webmail. 

>>> 

>>> Thank you very much for your reply Matthew- I am currently trying to run PALM again with your suggested F-test matrix of 0 0 1 1. My question is what does the F-test matrix 0 0 1 1 mean here. I thought the columns of the F-test matrix would correspond to the rows of the t-test matrix. So if t-test matrix has row 1 with tp1-vs-tp2, row 2 with tp1-vs-tp3 then the F-test matrix would be 1 1 0 0 so that row 3 and row 4 of the t-test matrix which are tp2-vs-tp3 and subject mean would not be chosen. Also in my palm command I gave the option -cmcx and I was wondering if this would be an appropriate flag to use instead of -npccon as suggested in PALM/JointInference user guide. At first I did give -npccon option but I got an error so I switched to -cmcx as suggested in the message. Best, Julia Shin

>>> 

>>> On Wed, Jul 27, 2022 at 8:15 PM Matthew Webster <[log in to unmask]> wrote:

>>> Hello Julia,

>>>                  You only need to include ( any ) 2 of the 3 tp_x-vs-tp_y t-contrasts as the 3rd difference is implicitly included in the test - e.g. if there is no difference between tp1,tp2 and tp1,tp3 then by definition there is no difference between tp2,tp3.

>>> 

>>> With reference to the Freesurfer link in your email, this would be equivalent to "Contrast 4 (tp-effect.mtx)" which in FSL/PALM terms would be F-contrast 0 0 1 1. The F-contrast in your email ( 1 1 1 1 ) as well as being rank-deficient, also includes the subject-mean t-contrast, which may or may not be what is intended.

>>> 

>>> Kind Regards

>>> Matthew

>>> 

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

>>> Dr Matthew Webster

>>> FMRIB Centre 

>>> John Radcliffe Hospital

>>> University of Oxford

>>> 

>>> > On 27 Jul 2022, at 11:01, Hye Min Shin <[log in to unmask]> wrote:

>>> > 

>>> > Hello experts,

>>> > 

>>> > I am trying to run FSL PALM specifically NPC using the example from the freesurfer repeated measures anova tutorial page: https://surfer.nmr.mgh.harvard.edu/fswiki/RepeatedMeasuresAnova#Contrast4.28tp-effect.mtx.29

>>> > 

>>> > This freesurfer tutorial has 3 subjects with 3 timepoints with the following design matrix (column1-3 are subjects 1-3 and column 4 is tp1-vs-tp3 and column 5 is tp1-vs-tp3):

>>> > 

>>> >     1     0     0     1     1

>>> >     1     0     0    -1     0

>>> >     1     0     0     0    -1

>>> >     0     1     0     1     1

>>> >     0     1     0    -1     0

>>> >     0     1     0     0    -1

>>> >     0     0     1     1     1

>>> >     0     0     1    -1     0

>>> >     0     0     1     0    -1

>>> > 

>>> > It also has 5 contrasts, 4 t-tests and 1 F-test. 

>>> > 

>>> > The design matrix for the t-tests is the following:

>>> > 

>>> > 0 0 0 1 0            (tp1-vs-tp2)

>>> > 0 0 0 0 1            (tp1-vs-tp3)

>>> > 0 0 0 -1 1           (tp2-vs-tp3)

>>> > 1 1 1 0 0             (is the subject mean == 0? )

>>> > 

>>> > The design matrix for the F-test is the following:

>>> > 1 1 1 1

>>> > 

>>> > I wanted to run the F-test to see if there is a group effect or specifically in this case the effect of timepoint. However, whenever PALM tries to run the F-test using NPC it keeps saying the rank is deficient. 

>>> > 

>>> > I ran PALM using npc with the following command:

>>> > 

>>> > palm -i ./lh.thickness.sm15.mgh -m ./a_glmfit-lh/mask.mgh -d ./a_glmfit-lh/palm-onetail-1.3-lh/design.mat -t ./a_glmfit-lh/palm-onetail-1.3-lh/design.con -f ./adni_glmfit-lh/palm-onetail-1.3-lh/design.fts -n 5000 -npc -cmcx -o ./a_glmfit-lh/palm_mv-lh -logp

>>> > 

>>> > 

>>> > Is there something wrong with my F-test matrix or do I not need to run the F-test if I was able to run the t-tests on paired comparisons? 

>>> > 

>>> > Thank you in advance for your help

>>> > 

>>> > Best,

>>> > Julia Shin

>>> > 

>>> > ########################################################################

>>> > 

>>> > To unsubscribe from the FSL list, click the following link:

>>> > https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=FSL&A=1

>>> > 

>>> > This message was issued to members of www.jiscmail.ac.uk/FSL, a mailing list hosted by www.jiscmail.ac.uk, terms & conditions are available at https://www.jiscmail.ac.uk/policyandsecurity/

>>> 

>>> ########################################################################

>>> 

>>> To unsubscribe from the FSL list, click the following link:

>>> https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=FSL&A=1

>>> 

>>> This message was issued to members of www.jiscmail.ac.uk/FSL, a mailing list hosted by www.jiscmail.ac.uk, terms & conditions are available at https://www.jiscmail.ac.uk/policyandsecurity/

>>> 

>>> To unsubscribe from the FSL list, click the following link:

>>> https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=FSL&A=1

>>> 

>> 

>> 

>> To unsubscribe from the FSL list, click the following link:

>> https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=FSL&A=1

>> 

>> 

>> To unsubscribe from the FSL list, click the following link:

>> https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=FSL&A=1

>> 

> 

> 

> To unsubscribe from the FSL list, click the following link:

> https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=FSL&A=1

> 

> 

> To unsubscribe from the FSL list, click the following link:

> https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=FSL&A=1

> 





########################################################################



To unsubscribe from the FSL list, click the following link:

https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=FSL&A=1



This message was issued to members of www.jiscmail.ac.uk/FSL, a mailing list hosted by www.jiscmail.ac.uk, terms & conditions are available at https://www.jiscmail.ac.uk/policyandsecurity/

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

May 2024
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


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