Hi,
I am hoping someone can help me.
I am looking at the effect of acute exercise on brain structure over time.
I have 30 subjects, split into 2 groups: Exercise (N=20) and Control (N=10)
In all subjects, there was a MRI scan (and cognitive tests) (1) immediately before, (2) immediately after, and (3) 1 hour after the Activity Block (exercise, or rest for controls).
In my first aim, I wanted to see whether brain changes were different between groups (Exercise vs control) over time (scan [factor variable, time1,2,and 3]) and ran a linear mixed model:
xtmixed whole_brain_mu group##scan i.sex c.age || id:, var noconst residuals(unstr, t(scan)) reml
contrast group##scan
This provides a significant interaction between group and time, as expected: F2,39.22 = 13.31, p = .0010
I then wanted to see whether there was an interaction between group and time on cognitive performance:
xtmixed flanker_inc_rt group##scan i.sex c.age || id:, var noconst residuals(unstr, t(scan)) reml
contrast group##scan
which there was: F2,35.30 = 11.00, p = .0041
What I now want to do, is analyse whether the changes observed in brain structure are related to the changes observed in cognition, and whether this differs by group.
One option was to perform a regression and calculate difference scores between scan 1 and scan 2 in brain structure, and calculate difference scores between scan 1 and scan 2 in cognition. But then I am missing the effects of scan 3 (presumably everything returning to baseline).
I also am not sure how this design would consider between-subject and within-subject effects (as in the first lines of code).
Any advice would be much appreciated.
Thanks,
Lucy
I am hoping someone can help me.
I am looking at the effect of acute exercise on brain structure over time.
I have 30 subjects, split into 2 groups: Exercise (N=20) and Control (N=10)
In all subjects, there was a MRI scan (and cognitive tests) (1) immediately before, (2) immediately after, and (3) 1 hour after the Activity Block (exercise, or rest for controls).
In my first aim, I wanted to see whether brain changes were different between groups (Exercise vs control) over time (scan [factor variable, time1,2,and 3]) and ran a linear mixed model:
xtmixed whole_brain_mu group##scan i.sex c.age || id:, var noconst residuals(unstr, t(scan)) reml
contrast group##scan
This provides a significant interaction between group and time, as expected: F2,39.22 = 13.31, p = .0010
I then wanted to see whether there was an interaction between group and time on cognitive performance:
xtmixed flanker_inc_rt group##scan i.sex c.age || id:, var noconst residuals(unstr, t(scan)) reml
contrast group##scan
which there was: F2,35.30 = 11.00, p = .0041
What I now want to do, is analyse whether the changes observed in brain structure are related to the changes observed in cognition, and whether this differs by group.
One option was to perform a regression and calculate difference scores between scan 1 and scan 2 in brain structure, and calculate difference scores between scan 1 and scan 2 in cognition. But then I am missing the effects of scan 3 (presumably everything returning to baseline).
I also am not sure how this design would consider between-subject and within-subject effects (as in the first lines of code).
Any advice would be much appreciated.
Thanks,
Lucy
Comment