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  February 2012

FSL February 2012

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: paired t-test tbss and randomise

From:

Roger Jou <[log in to unmask]>

Reply-To:

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

Date:

Fri, 24 Feb 2012 10:33:37 -0500

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (305 lines)

Hi Jeanette,

Thank you very much your detailed and lucid explanation.

I greatly appreciate it!

Roger

Quoting Jeanette Mumford <[log in to unmask]>:

> Hi Roger,
>
> You emailed earlier and asked if 2 subjects were enough and I said no and
> now you  can see why :)  You don't have enough observations to calculate a
> test statistic!  First off, I'll tell you how to calculate a paired t-test
> and then I'll explain why you cannot do it with only 2 subjects.
>
> Let's assume in the future you'll have 20 subjects...
>
> 1) use fslmaths to calculate a *separate* paired difference for each
> subjects.  So, if you had 20 subjects you'll end up with 20 paired
> differences.  Put these into a single 4d file
>
> 2) Now use randomise to run a 1-sample t-test on these differences.  You
> don't even need to go to the trouble of specifying a design and contrasts,
> you can simply use the "-1" flag.  Also, you don't need to worry about
> randomise properly permuting the data when you specify the model this way
> (only data within pairs can have their labels swapped).
>
> If you only have 2 subjects total, then there isn't a statistical model to
> help you out.  You'll only have 2^N possible permutations in a permutation
> test, which would be 4 in the case of N=2 and this is no where close to
> what you need to calculate a p-value (randomise said it ran 6 permutations,
> so it may have been specified wrong).  I don't know how others feel, but I
> prefer to have at least 1000 permutations (10 or more subjects).  Actually,
> I'm most comfortable over 12 subjects.
>
> A traditional OLS model cannot do it either due to the low degrees of
> freedom you will obtain horrible estimates.
>
>
> Hope that helps,
> Jeanette
>
>
> On Thu, Feb 23, 2012 at 11:18 AM, Roger Jou <[log in to unmask]> wrote:
>
>> Dear Professor Smith:
>>
>> Thank you for your reply.  As you suggested, I used the GLM GUI Wizard to
>> generate the design.con and design.mat files.  However, while running
>> randomise
>> (after the TBSS processing stream) I get the same message with randomise
>> executing indefinitely without any further output.
>>
>>
>> "Warning: tfce has detected a large number of integral steps. This
>> operation may
>> require a great deal of time to complete."
>>
>> I've searched the forum and found possible solutions, but the ones that
>> I've
>> come across do not seem to apply.  For example, the imaging data is free of
>> corruption on visual inspection and the order of the images matches the
>> design.con and design.mat files.  I've included the files, commands, and
>> output
>> below.
>>
>> Thank you again for your help in troubleshooting this problem.
>>
>> Regards,
>>
>> Roger
>>
>> Order of subjects:
>>
>> After_S1_FA     After_S2_FA     Before_S1_FA     Before_S2_FA
>>
>>
>> View design.mat:
>>
>> /NumWaves     3
>> /NumPoints     4
>> /PPheights     2.000000e+00     1.000000e+00     1.000000e+00
>>
>> /Matrix
>> 1.000000e+00     1.000000e+00   0.000000e+00
>> 1.000000e+00     0.000000e+00   1.000000e+00
>> -1.000000e+00    1.000000e+00   0.000000e+00
>> -1.000000e+00    0.000000e+00   1.000000e+00
>>
>> View design.con:
>>
>> /ContrastName1     "condition A > B"
>> /ContrastName2     "condition B > A"
>> /NumWaves     3
>> /NumContrasts     2
>> /PPheights     2.000000e+00     2.000000e+00
>> /RequiredEffect     3626504.500     3626504.500
>>
>> /Matrix
>> 1.000000e+00     0.000000e+00     0.000000e+00
>> -1.000000e+00    0.000000e+00     0.000000e+00
>>
>> The command and output are as follows:
>>
>> [rogerjou@new-host stats]$ randomise -i all_FA_skeletonised.nii.gz -o
>> paired_tbss -m mean_FA_skeleton_mask.nii.gz -d design.mat -t design.con
>> --T2 -V
>> --debug
>> randomise options: -i all_FA_skeletonised.nii.gz -o paired_tbss -m
>> mean_FA_skeleton_mask.nii.gz -d design.mat -t design.con --T2 -V --debug
>> Loading Data:
>> Data loaded
>> Confounds detected.
>> Subject | Design | group | label
>> 1.000000 1.000000 1.000000 1.000000
>> 2.000000 1.000000 1.000000 1.000000
>> 3.000000 -1.000000 1.000000 2.000000
>> 4.000000 -1.000000 1.000000 2.000000
>>
>> 6 permutations required for exhaustive test of t-test 1
>> Input Design:
>> 1.000000 -1.000000 0.000000
>> 1.000000 0.000000 -1.000000
>> -1.000000 -1.000000 -0.000000
>> -1.000000 -0.000000 -1.000000
>>
>> Input Contrast:
>> 1.000000 0.000000 0.000000
>>
>> Contrast rank: 1
>> Dof: 1 original dof: 1
>> Doing all 6 unique permutations
>> Starting permutation 1 (Unpermuted data)
>> statistic Maximum: 19213.1
>> Starting permutation 2
>> statistic Maximum: 1.69331e-10
>> Starting permutation 3
>> statistic Maximum: 2.64627e+16
>>
>> Warning: tfce has detected a large number of integral steps. This
>> operation may
>> require a great deal of time to complete.
>>
>>
>> Quoting Stephen Smith <[log in to unmask]>:
>>
>>  Hi - you can use the model Wizard in the Glm GUi to setup a paired t-test
>>> and save the design files.
>>>
>>> Cheers
>>>
>>>
>>>
>>> On 22 Feb 2012, at 18:31, Roger Jou wrote:
>>>
>>>  Dear FSL Experts,
>>>>
>>>> In case my question slipped through the cracks, I wanted to resend and
>>>> reframe
>>>> the question.  In general, I wanted to know how to construct design.con
>>>> and
>>>> design.mat files for paired t-test using TBSS and randomise (w/o using
>>>> GUI).
>>>>
>>>> I've tried a different setup (included directly below this message), but
>>>> keep
>>>> running into the same problem:
>>>>
>>>> "Warning: tfce has detected a large number of integral steps. This
>>>> operation may
>>>> require a great deal of time to complete."
>>>>
>>>> Data looks good on inspection and randomise executing indefinitely but
>>>> without
>>>> any further output.
>>>>
>>>> Thanks in advance for your help in this!
>>>>
>>>> Roger
>>>>
>>>> Order of subjects:
>>>> After_CE1264_FA
>>>> After_CE1710_FA
>>>> Before_CE1264_FA
>>>> Before_CE1710_FA
>>>>
>>>> View design.mat:
>>>> /NumWaves 4
>>>> /NumPoints 4
>>>> /PPheights 1 1 1 1
>>>> /Matrix
>>>> 1 0 1 0
>>>> 1 0 0 1
>>>> 0 1 1 0
>>>> 0 1 0 1
>>>>
>>>> View design.con:
>>>> /NumWaves 4
>>>> /NumContrasts 2
>>>> /PPheights 2 2
>>>> /Matrix
>>>> 1 -1 0 0
>>>> -1 1 0 0
>>>>
>>>>
>>>> Quoting Roger Jou <[log in to unmask]>:
>>>>
>>>>  My apologies...spelling error in design.con file.
>>>>>
>>>>> After correction, the program delivers this message after doing 2-3
>>>>> permutions:
>>>>>
>>>>> Warning: tfce has detected a large number of integral steps. This
>>>>> operation may
>>>>> require a great deal of time to complete.
>>>>>
>>>>> Yet, randomise is still executing but without any further output.
>>>>>
>>>>> Any help would be greatfully appreciated.
>>>>>
>>>>> Roger
>>>>>
>>>>> Quoting Roger Jou <[log in to unmask]>:
>>>>>
>>>>>  Dear FSL Community,
>>>>>>
>>>>>> I am trying to perform a paired t-test on FA of two subjects before
>>>>>> and after an intervention using randomise.  The processing using FDT and
>>>>>> TBSS has gone smoothly and the data quality looks good w/o signs of
>>>>>> corruption.  However, I am stuck on how to create the proper 
>>>>>> design.con and
>>>>>> design.mat files.  I have searched the FSL forum and inferring from item
>>>>>> #032946 (which discusses four subjects, not two), I have set up the
>>>>>> following:
>>>>>>
>>>>>> Order of subjects:
>>>>>> After_subj1
>>>>>> After_subj2
>>>>>> Before_subj1
>>>>>> Before_subj2
>>>>>>
>>>>>> View design.mat:
>>>>>> /NumWaves 3
>>>>>> /NumPoints 4
>>>>>> /PPheights 2 1 1
>>>>>> /Matrix
>>>>>> 1 1 0
>>>>>> 1 0 1
>>>>>> -1 1 0
>>>>>> -1 0 1
>>>>>>
>>>>>> View design.con:
>>>>>> /NumWaves 3
>>>>>> /NumConstrasts 2
>>>>>> /PPheights 2 2
>>>>>> /Matrix
>>>>>> 1 0 0
>>>>>> -1 0 0
>>>>>>
>>>>>> After typing:
>>>>>>
>>>>>> [rogerjou@localhost stats]$ randomise -i all_FA_skeletonised -o tbss
>>>>>> -m mean_FA_skeleton_mask -d design.mat -t design.con --T2 -V --debug
>>>>>>
>>>>>> I get the following within a couple seconds:
>>>>>>
>>>>>> randomise options: -i all_FA_skeletonised -o tbss ?m
>>>>>> mean_FA_skeleton_mask -d design.mat -t design.con --T2 -V --debug
>>>>>> Loading Data:
>>>>>> Data loaded
>>>>>> Finished, exiting.
>>>>>> [rogerjou@localhost stats]$
>>>>>>
>>>>>> Can someone please tell me what is going wrong here?
>>>>>> If the design.com and design.mat files are incorrect, can you please
>>>>>> tell me the correct setup?
>>>>>>
>>>>>> Thanks in advance!
>>>>>>
>>>>>> Roger
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>> ------------------------------**------------------------------**
>>> ---------------
>>> Stephen M. Smith, Professor of Biomedical Engineering
>>> Associate Director,  Oxford University FMRIB Centre
>>>
>>> FMRIB, JR Hospital, Headington, Oxford  OX3 9DU, UK
>>> +44 (0) 1865 222726  (fax 222717)
>>> [log in to unmask]    
>>> http://www.fmrib.ox.ac.uk/~**steve<http://www.fmrib.ox.ac.uk/%7Esteve>
>>> ------------------------------**------------------------------**
>>> ---------------
>>>
>>>
>>>
>>>
>>>
>

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