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  January 2016

FSL January 2016

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: TBSS randomise with FA-COVARIATE interaction to explain behaviour

From:

Robert Schulz <[log in to unmask]>

Reply-To:

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

Date:

Tue, 12 Jan 2016 08:09:50 +0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (226 lines)

Hi Anderson, 

thank you for your answer. 
Please see my answers and another question below (@ ==>): 


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

Hi Robert,

Please see below:


On 7 January 2016 at 14:56, Robert Schulz <[log in to unmask]> wrote:

    Hi Anderson,

    this was very helpful. Thank you very much so far. I would like to ask a first, final question in all this FA-covariate interaction-stuff which I am dealing with at the moment, referring to my very initial question (see also below).

    For summary:
    Question of interest: I am looking for voxels with significant interactions between FA and one covariate COV in explaining behavior BEH, correcting for AGE and GENDER.

    This is how I actually set up my model:

    In principal: DV ~ [ GROUP + AGE + GENDER + COV + FA + COV*FA ]   [parameters models in FSL GLM]

    DV: 4D skeletonised BEH, demeaned (i.e. all skeleton voxels filled with BEH for each subject)
    GROUP: all 1




Is this a single group then?

===> Yes, in this analysis, I would only have one group.
 




    AGE, GENDER, COV: demeaned
    FA: 4D skeletonised TBSS data (as usually used), but demeaned (!) (i.e. each voxel on the skeleton is demeaned taking the group average of this specific voxel into account)



This part isn't good: it seems you're demeaning within group. Instead either demean across all subjects, or add an intercept in the model. However, if this is a single group (as suggested above), then it's fine, as the GROUP EV is already the intercept.

==> The reason for this was to demean the COVARIATE FA, indeed within GROUP across all (!) subjects as  I only have one group. If you think of the model DV ~ [ GROUP + AGE + GENDER + COV + FA + COV*FA ], I assumed that I had to demean FA as well as I did for AGE, Gender and COV. Having demeaned DV and all covariates, I could even omit GROUP intercept, right? 
 




    COV*FA: product of COV and FA 4D ==> giving another 4D image

    Contrast: 0 0 0 0 0 1 ==> Voxels with sign. pos. interaction between COV and FA.

    My randomise command is:
    randomise -i all_BEH_demeaned_skel -o results -m mean_FA_skeleton_mask -d model.mat t model.con -n 500 --T2 --vxl=5,6 --vxf= all_FA_demeaned_skel,all_product_skel

    Actually, the calculations seems to take a while.... Eyerything correct at this stage?


Other than the questions above, all seems fine. Yes, voxelwise EVs take much longer to run.

All the best,

Anderson


 


    Thank you so much for your help.

    Kind regards,
    Robert


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


    Hi Robert,

    The F-test it seems uses C3 and C4, but C4 is the same as C3 multiplied by -1. Instead, define the F-test as just C3 or as just C4 (either will give the same result) but not both at the same time.

    That said, you also need to make sure the option -f <design.fts> is included when invoking randomise.

    All the best,

    Anderson


    On 6 January 2016 at 17:12, Robert Schulz <[log in to unmask]> wrote:

        Dear Matthew,

        I see. However, it says, the F test would not valid as each included contrast cannot be a linear combination of the others.
        I guess it has not been caculated. This message also pops up if I try to view the design - which I cannot; it says child process exited abnormally. Or how do I get to the F test results?

        Otherwise, would this approach including its GLM and contrasts be correct?
        Thank you for your help.
        Kind regards, Robert


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


        Hello Robert,
                                Depending on the values used for the "dummy" EVs used as placeholders for the voxelwise EVs, the GUI may warn about linear combinations. In this case, the message can be safely ignored.

        Kind regards
        Matthew

        > Dear Anderson,
        >
        > thank you very much for your quick reply.
        > According to your suggestion, we changed our randomise setup in the following way as a first approach. The aim of this analysis is to uncover an interaction between regional FA and GROUP in explaining a dependent behavioural variable.
        >
        > We calculated a new stock of skeletonised images inlcuding our dependent variable, DV (Behavioural), one for each subject and the whole skeleton. ==> new 4D file all_DV.nii.gz
        >
        > We set up a new GLM including
        >
        > EV1 = GROUP1 (coded as 0,1)
        > EV2 = GROUP2 (coded as 0,1)
        > COV1 = (demeaned across both groups, age)
        > COV2 = (demeaned across both groups, gender)
        >
        > Additionally, we inlcuded  - as voxelwise EVs - two 4D files with subjects specific FA values on the skeleton, one for GROUP1 (EV5, all_FA_G1.nii.gz), another for GROUP2 (EV6, all_FA_G2.nii.gz).
        >
        > For contrast, we set up 4 contrasts:
        >
        > 1. T 0 0 0 0 1 0 (pos. correlation between FA and DV for Group1)
        > 2. T 0 0 0 0 0 1 (pos. correlation between FA and DV for Group2)
        > 3. 0 0 0 0 1 -1 + 4. 0 0 0 0 -1 1
        > Contrasts 3 and 4 are summarized to one F contrast to investigate an INTERACTION between GROUP and FA in explaining DV.
        >
        > Firstly, when saving this GLM, I got a warning that some EVs might be linear combinations of others. Why this? Where did I make a mistake? Do I have to demean the voxelwise EVs (4D FA files) across both groups as well? Could I use -D flag instead?
        >
        > My actual randomise command would be
        >
        > randomise -i all_DV -o tbss -d randomise.mat -t randomise.con --vxl=5,6 --vxf=all_FA_G1,all_FA_G2 -n 500 -T
        >
        > Does this approach sound valid to you? For C1, I find some clusters, nothing for C2. For C3 I wonder that I don't find anything, for C4 I get some signals. Nothing after correction. F statistics are not calculated. I am confused.
        >
        > I am looking forward to your answer.
        >
        > Thank you so much.
        >
        > Kind regards,
        > Robert
        >
        >
        >
        >
        >
        >
        >
        >
        >
        > ###############################################
        >
        >
        >
        > Hi Robert,
        >
        > Please, see below:
        >
        >
        > On 23 December 2015 at 09:03, Robert Schulz <[log in to unmask]> wrote:
        >
        >    Dear all,
        >
        >    I wonder whether it would be possible to use TBSS / randomise on FA data to answer the following 2 questions:
        >
        >    1. I would like to visualize voxels with a significant interaction GROUP[2 levels, 1,0]*FA in correlating with a continuous COV, adjusting for AGE and GENDER. I would set up the following GLM with the EVs:
        >
        >    Intercept  GROUP1   GROUP0   COV_G1(cont., demean)   COV_G0(cont., demean)    AGE(cont., demean)   GENDER (0,1, demean)
        >
        >    Contrasts (randomise without -D option as intercept is included):
        >    Pos. Correlation FA-COV for Group1: 0 0 0 1 0 0 0
        >    Pos. Correlation FA-COV for Group0: 0 0 0 0 1 0 0
        >    Sign. Interaction FA-GROUP in the explanation of COV: F contrast 0 0 0 1 -1 0 0 / 0 0 0 -1 1 0 0
        >
        >    Correct?
        >
        >
        > Almost. Use:
        > EV1: Group 0 (coded as 0 and 1)
        > EV2: Group 1 (coded as 0 and 1)
        > EV3: Cov, group 0
        > EV4: Cov, group 1
        > EV5: age
        > EV6: sex.
        >
        > The contrasts are nearly identical, except that you will have dropped EV1.
        >
        > The reason for the change is that Groups 0 and 1 added together correspond to the Intercept, which would introduce redundancies to the design.
        >
        >
        >
        >
        >    2. Now, if I would be interested in an interaction between FA and a continuous variable BEH instead of a categorial factor GROUP:
        >    In R statistical package, the model would be - e.g. think of one single FA value in one voxel: lm(COV ~ AGE + GENDER + BEH + FA + BEH*FA, data=dat). How should I set up the model - if possible - for randomise? I could imagine
        >
        >    Intercept  BEH(cont., demean) COV(cont., demean) BEH*COV(demean)  AGE(cont., demean)   GENDER (0,1, demean) with
        >    contrast: 0 0 1 0 0.
        >
        >    However, here I would be modeling the interaction between BEH and COV in explaining FA, but this is actually not really what I want. I want to model the interaction BEH*FA in explaining COV (see R model). I would really appreciate any help.
        >
        >
        > For this you'd need to convert the COV to a 4D image, then run randomise with voxelwise EVs. To convert COV to an image, use fslmaths, multiplying a 3D mask of ones by the value of each subject, then merging as a 4D.
        >
        > I think PALM expands an input single column .csv file to the size of an image if there are voxelwise EVs (I can't recall if this is just for NPC or any voxelwise EV) so it could be an option.
        >
        > All the best,
        >
        > Anderson
        >
        >
        >
        >
        >
        >    Thank you very much for your help.
        >    Kind regards, Robert

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


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