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 2018

FSL January 2018

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: Three repeated measures with 2 covariates

From:

Pavel Hok <[log in to unmask]>

Reply-To:

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

Date:

Mon, 1 Jan 2018 22:06:21 +0100

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (233 lines)

Hi Anderson,

thanks for your answer and interesting suggestions. Here is my further
clarification:

On 26 December 2017 at 05:34, Anderson M. Winkler
<[log in to unmask]> wrote:
>
> Hi Pavel,
>
> I think you have here a great case for NPC. I'll consider below that you'd run this design using PALM, even though some of these tests could in fact be done using randomise. Also, below I make reference to this spreadsheet: https://s3-us-west-2.amazonaws.com/andersonwinkler/mailinglist/design_pavel.ods
>
>
> On 18 December 2017 at 18:35, Pavel Hok <[log in to unmask]> wrote:
>>
>> Dear FSL experts,
>>
>> I know that similar questions have been asked before, but I could not
>> find a suitable solution for my problem.
>>
>> I have data from 30 subjects who all underwent 3 fMRI sessions, each
>> with two identical runs with a classical blocked motor task. The three
>> sessions were not equally spaced in time, but exactly at weeks 0, 4
>> and 12. The group is also quite heterogeneous in terms of age and
>> there is an important behavioural measure obtained at each timepoint.
>>
>> Between timepoint 1 and 2 there is an intervention that has an
>> immediate impact on timepoint 2, but not on timepoint 3 (this is
>> strong and biologically valid assumption). The intervention also
>> significantly affects the behavioural measure.
>>
>> Assuming I have already averaged the two identical runs in each
>> session in a middle-level analysis (fixed effects in FEAT), I am now
>> interested in a) average activation per session adjusted for age,
>
>
> When you say you are "interested in a) average activation per session adjusted for age", do you mean the average activation of the 2 runs per session (that you've already averaged in the mid-level) or the average of the three sessions per subject? I believe it's the first case, given what you write below, and I'll consider that when answering further down.

Yes, I mean the first case.

>
>
>
>>
>> b)
>> the effect of my behavioural score adjusted for age, c) intra-subject
>> ("paired") differences related to the intervention adjusted for any
>> linear effect of time.
>>
>> For the purpose I have thought about several designs for FEAT, but I
>> have serious doubts regarding their validity. I would appreciate any
>> correction or comment.
>>
>> 1) Average adjusted for age
>>
>> I assume that the safest way is to run separate group analyses per
>> session with the same age covariate (EV 1 group mean, EV 2 demeaned
>> covariate).
>
>
> Exactly. Same model for each of the 3 sessions. In the link below, this "design_a1". To correct for all 3, you could use the option -corrmod in PALM, entering each session as a separate input 4D file. Something like this:
>
> palm -i sessA_4D.nii -i sessB_4D.nii -i sessC_4D.nii -d design_a1.csv -t contrasts_a1.csv -ise -n 5000 -logp [...other options...]
>
>>
>> However, is it possible to run one analysis with 3 EVs
>> (one per session) to model the means and a 1 EV for age covariate
>> (similar to a two-group comparison with covariate)? Such design would
>> expect a constant effect of age, which can make sense.
>
>
> Yes, it's possible. This is a less intuitive model. Please see in the link below the "design_a2". Each subject is one exchangeability block. You'd run this model as this:
>
> palm -i allsessions_4D.nii -d design_a2.csv -t contrasts_a2.csv -eb EB.csv -ise -whole -n 5000 -logp [...other options...]
>
>
>>
>>
>> 2) Covariate adjusted for age
>>
>> Again, I could analyse each session separately. However, I would be
>> also interested in the average effect of the covariate across all
>> three sessions. First, I thought that I can expand the previous design
>> (3 EVs for means, 1 EV for age) by adding an extra EV for the demeaned
>> covariate. Unlike age, the covariate differs both between and
>> within-subject, but it definitely shows some consistent changes across
>> sessions. Therefore I also considered that it might be worthwhile to
>> combine it with the third model below.
>>
>
> This requires 2 models, one for the within-subject effects, that in principle would use within-block (within-subject) permutations, and one for between-subject effects, that in principle would use whole-block (whole-subject) permutations. However, these can be combined and shuffled in synchrony. The within-block permutations done in between-subjects design will have no effect. Likewise, the whole-block permutations done in within-subject designs will have no effect. By "no effect" I mean will not perturb the design in a way that is useful for hypothesis testing. However, unless the sample size were tiny, the number of possible permutations is enormous, such that it's possible to run within- and whole- permutations together, and still perturb both designs in ways that are nearly always useful to construct the distribution of the test statistic and test the hypothesis. Then these two can be combined with NPC. That is:
>
> palm -i allsessions_4D.nii -d design_b1.csv -d design_b2.csv -t contrast_b1.csv -t contrast_b2.csv -eb EB.csv -whole -within -npccon -n 5000 -logp [...other options...]
>
> Note that design_b1 (within-subject) doesn't include age, as that is captured already by the subject-specific EVs (EV5 onwards).
>
>
>>
>> 3) Effect of treatment and time
>>
>> This one is tough. I thought the tripled T-test from the FSL website
>> (https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/GLM#Single-Group.2C_Three_Measurements_.28.22Tripled_T-Test.22.29)
>> could be an option, but my measurements are not equally spaced in
>> time, which probably violates the assumptions for such design.
>> Instead, I thought I could model the treatment effect and the time
>> with the following design:
>>
>> Input   EV1   EV2  EV3 ... EVN+2
>> 1        -0.33  -5.33  1  0  0 ...
>> 2        -0.33  -5.33  0  1  0 ...
>> ...
>> 30      -0.33  -5.33  0  0  0 ...
>>
>> 31       0.67  -1.33  1  0  0 ...
>> ...
>> 60       0.67  -1.33  0  0  0 ...
>>
>> 61      -0.33   6.67  1  0  0 ...
>> ...
>> 90      -0.33   6.67  0  0  0 ...
>>
>> Contrasts
>>
>> Treatment   1  0 0 ... F-test
>> -Treatment -1  0 0 ...
>> Time           0  1 0 ... F-test
>> -Time          0 -1 0 ...
>>
>> where EV1 models the effect of treatment (assumed in the second
>> timepoint only, modelled as 0 and 1s and demeaned), EV2 models the
>> time linearly (values 0 4 and 12 demeaned). Is this model OK given my
>> hypotheses? Feat does not complain about the matrix being rank
>> deficient. Moreover, can I add the behavioural covariate
>> (orthogonalised or not) as an additional EV? I know that adding the
>> age covariate will make the design rank deficient.
>
>
> Here you'd need to make some decisions about what exactly you'd like to test. Earlier you said that treatment has immediate effect on the 2nd timepoint, but not on the 3rd. Is that the case? If yes, the 3rd timepoint could be dropped, which would simplify the design. Or would you rather model the slope within subjects with all 3 timepoints, then do a group-level model to see if that is slope is significantly different than zero? Also, would you want an overall F-test to see if there is any difference over time across all 3 timepoints, or something more specific such as whether the average slope (considering the 3 sessions) is different than zero?
>
> The design would be different depending on the answer.

Well, the third timepoint is not necessary to see the treatment
effect, but we consider it important to separate the immediate
treatment effect from the time effect (which may include, e.g.,
improvement due to spontaneous recovery or due to concomitant
physiotherapy). First, I am interested in the overall F-test to see if
there is any difference at all. If positive, I would like to separate
any linear effect T1->T2->T3 from an effect that is only expected at
T2. Importantly, the timepoints are not equally spaced, so there
should be some weighting. Does that make sense now?

Thanks in advance for any further suggestions and, by the way, happy New Year!

Cheers

Pavel

>
> Hope this helps!
>
> All the best,
>
> Anderson
>
>
>>
>>
>> Thanks in advance for any help!
>>
>> Cheers
>>
>> Pavel
>>
>> BTW: Did anyone consider creating a library with "validated" designs
>> for FSL? The GLM website does not seem to cover all possible cases,
>> not even some of those discussed in this forum.
>
>
> Yes... that would be good, but need to find time to put these together...
>
>>
>>
>>
>> --
>> -------------------------------------------------------------------------------
>> -- MUDr. Pavel Hok
>> -------------------------------------------------------------------------------
>> -- Laboratoř funkční magnetické rezonance
>> -- Neurologická klinika
>> -- Lékařská fakulta
>> -- Univerzita Palackého v Olomouci
>> -- Fakultní nemocnice Olomouc
>> -------------------------------------------------------------------------------
>> -- Laboratory of functional magnetic resonance imaging
>> -- Department of Neurology
>> -- Faculty of Medicine and Dentistry
>> -- Palacky University Olomouc
>> -- University Hospital Olomouc
>> -- Czech Republic
>> -------------------------------------------------------------------------------
>> -- I.P. Pavlova 6, 775 20 Olomouc
>> -- web: fmri.upol.cz
>> -- tel.: +420 588 443 418
>> -- e-mail: [log in to unmask]
>> -------------------------------------------------------------------------------
>
>



-- 
-------------------------------------------------------------------------------
-- MUDr. Pavel Hok
-------------------------------------------------------------------------------
-- Laboratoř funkční magnetické rezonance
-- Neurologická klinika
-- Lékařská fakulta
-- Univerzita Palackého v Olomouci
-- Fakultní nemocnice Olomouc
-------------------------------------------------------------------------------
-- Laboratory of functional magnetic resonance imaging
-- Department of Neurology
-- Faculty of Medicine and Dentistry
-- Palacky University Olomouc
-- University Hospital Olomouc
-- Czech Republic
-------------------------------------------------------------------------------
-- I.P. Pavlova 6, 775 20 Olomouc
-- web: fmri.upol.cz
-- tel.: +420 588 443 418
-- e-mail: [log in to unmask]
-------------------------------------------------------------------------------

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