I am wondering how to implement a paired t-test in 3dMema.
I have a dataset wherein participants are exposed to the same stimulus during two different tasks (taskA and taskB). 10 Participants perform taskA in run 1 and taskB in run 2. During each run they are exposed to six 30 second blocks of the stimulus.
For the first level analysis I have modeled the runs separately (as the baseline conditions in each run are different) using 3Ddeconvolve and 3DReml fit. I would now like to use 3dMEMA to examine the effects of the stimulus in TaskA vs TaskB.
Would it be correct to compute the differences between the betas in Task A and Task B for each participant from the stats.reml output and use these as input for 3dMEMA? If this is case, how would I compute the within-subject variability for the input?
It might be possible to mechanically perform such an analysis with separate effects and their t-statistics as input (e.g., some software does allow this kind of analysis), but it would be incorrect because the correlation between the two tasks would not be properly handled.
To be able to use 3dMEMA, you would have to provide both the contrast of Task A and Task B and the associated t-statistic. This means that you have to run 3dDeconvolve and 3dREMLfit by concatenating the two runs of data.
Would concatenating the two runs of data be correct if the baseline conditions in each run were different?
I actually tried running a model wherein the tasks are concatenated- 3dDeconvolve in this case outputs colinearity warnings (becuase run 1 is highly correlated with the regressor for task 1 and run2 is highly correlated with the regressor for task2). I am unsure how this would effect the task beta estimates of activity.
Would concatenating the two runs of data be correct if the baseline conditions in each run were different?
If specified properly, the two runs would have their own baselines (and slow drifting effects).
I actually tried running a model wherein the tasks are concatenated- 3dDeconvolve in this case outputs
colinearity warnings (becuase run 1 is highly correlated with the regressor for task 1 and run2 is highly
correlated with the regressor for task2).
Are you saying that you didn’t have collinearity when analyzing each run separately but you did when the two runs were concatenated? If so, something was not properly specified in the latter situation.
This seems okay. If the tasks are run-specific, there will typically be modest correlations due to that. But the betas should actually come out the same as when analyzing the runs separately (assuming motion and other regressors are also per run).
Thank you both for your response I was getting the following warnings when concatenating the runs- where the task in run1 is “step” and the task in run2 is “stand”.
++ Wrote matrix values to file X.nocensor.xmat.1D
++ ----- Signal+Baseline matrix condition [X] (1278x155): 3.58672 ++ VERY GOOD ++
e[7m*+ WARNING:e[0m !! in Signal+Baseline matrix:
Largest singular value=1.99236
2 singular values are less than cutoff=1.99236e-07
Are you saying that you didn’t have collinearity when analyzing each run separately but you did when the two runs were concatenated? If so, something was not properly specified in the latter situation.
Yes this was indeed the case. In my afni_proc for the concatenated multiple task runs this is what I used to define the model:
This is what it outputted (although I asked about two tasks (I did it to simplify my question) my experiment actually contains 9 tasks with 9 different conditions )
ISI error: stimuli overlap at run 1, time 46.0,overlap 30.0
** ISI error: stimuli overlap at run 1, time 104.0,overlap 33.0
** ISI error: stimuli overlap at run 1, time 167.0,overlap 36.0
** ISI error: stimuli overlap at run 1, time 239.0,overlap 39.0
** ISI error: stimuli overlap at run 1, time 310.0,overlap 33.0
** ISI error: stimuli overlap at run 1, time 383.0,overlap 39.0
** ISI error: stimuli overlap at run 2, time 46.0,overlap 30.0
** ISI error: stimuli overlap at run 2, time 104.0,overlap 33.0
** ISI error: stimuli overlap at run 2, time 167.0,overlap 36.0
** ISI error: stimuli overlap at run 2, time 239.0,overlap 39.0
** ISI error: stimuli overlap at run 2, time 310.0,overlap 33.0
** bailing…
This shows very strong overlap in the event timing. I am not sure whether you would want to post the full details, but you could mail them to me (or even the actual timing files). But consider what the event list form of that command shows:
Hi Gang,
What is the consequence of using 3dDeconvolve’d data rather than REMLfit data in 3dMEMA, in terms of outcomes? Is it acceptable to use 3dDeconvolved data in such a case? What is the alternative if one only has beta images?
Thanks,
Matt
What is the consequence of using 3dDeconvolve’d data rather than REMLfit data in 3dMEMA, in
terms of outcomes? Is it acceptable to use 3dDeconvolved data in such a case?
Essentially 3dMEMA plays the role of differentiating the subjects based on their relative reliability. So yes, it would be still helpful to use the results from 3dDeconvolve as input for 3dMEMA for the differentiation purpose.
What is the alternative if one only has beta images?
Just use the typical population analysis programs such as 3dttest++, 3dMVM, 3dLME, etc.
The
National Institute of Mental Health (NIMH) is part of the National Institutes of
Health (NIH), a component of the U.S. Department of Health and Human
Services.