AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
October 07, 2021 01:25PM
Hi AFNI team,

I want to test the main effect of two factors (each has two levels, so it's a 2*2 design) and their interaction effect in every single subject (if it's a group analysis, it should be repeated-measure two-way anova). I read some posts before on this topic and I want to confirm here to make sure I did this correctly.

Experiment:
I have two factors, a and b, each has two levels (a1,a2 and b1,b2). In total I have four conditions (a1b1,a1b2,a2b1,a2b2). In each of these conditions, I test 9 different touch frequencies stimulation (I'll use numbers f1:f9 to represent) during scanning. My goal is to find the brain regions that show the main effect of a or b, and the interaction effect.

Here is the contrast I plan to use:
main effect of a: +a1b1_f1 +a1b1_f2 ... +a1b1_f9 +a1b2_f1 +a1b2_f2 ... +a1b2_f9 -a2b1_f1 -a2b1_f2 ... -a2b1_f9 -a2b2_f1 -a2b2_f2 ... -a2b2_f9
main effect of b: +a1b1_f1 +a1b1_f2 ... +a1b1_f9 +a2b1_f1 +a2b1_f2 + ... +a2b1_f9 -a1b2_f1 -a1b2_f2 ... -a1b2_f9 -a2b2_f1 -a2b2_f2 ... -a2b2_f9
interaction effect: +a1b1_f1 +a1b1_f2 ... +a1b1_f9 -a1b2_f1 -a1b2_f2 ... -a1b2_f9 +a2b1_f1 +a2b1_f2 ... +a2b1_f9 -a2b2_f1 -a2b2_f2 ... -a2b2_f9

(the ... represent all the frequency in the middle)

I also have two related questions here:
1) Here I simply combined all the frequency together with + or - signs in each condition, because I don't care about the effect of these conditions on a single frequency. So I'll get a T stat for each of the three contrasts. However, I saw in some other posts that these analyses were done within each frequency, combined with the \ sign, and see the final F stats combining all the frequencies. Which one is more appropriate?

2) It seems I can also add a coefficient in front of each condition like 0.0056. My understanding is that adding a coefficient or not, will not affect the final tstat or Fstat, but only the contrast coef value(which I'll not use). Is this correct?

If would be nice if you can confirm this is correct or not!

Thank you!

--Lingyan
Subject Author Posted

single subject ANOVA using 3dDeconvolve

swallowwly October 07, 2021 01:25PM

Re: single subject ANOVA using 3dDeconvolve

gang October 08, 2021 01:15PM

Re: single subject ANOVA using 3dDeconvolve

swallowwly October 08, 2021 01:41PM

Re: single subject ANOVA using 3dDeconvolve

gang October 08, 2021 03:20PM

Re: single subject ANOVA using 3dDeconvolve

swallowwly October 11, 2021 12:05AM