Is your factor A a between-subjects factor like groups ASD andTD? If so, you should use 3dANOVA3 -type 5 ... -clevels 4, and change the coding for the second group as follows:
-dset 2 1 1 'td01.LOC.4runs.GLM+tlrc[4]' \
-dset 2 2 1 'td01.LOC.4runs.GLM+tlrc[37]' \
-dset 2 1 2 'td02.LOC.4runs.GLM+tlrc[4]' \
-dset 2 2 2 'td02.LOC.4runs.GLM+tlrc[37]' \
-dset 2 1 3 'td03.LOC.4runs.GLM+tlrc[4]' \
-dset 2 2 3 'td03.LOC.4runs.GLM+tlrc[37]' \
-dset 2 1 4 'td04.LOC.4runs.GLM+tlrc[4]' \
-dset 2 2 4 'td04.LOC.4runs.GLM+tlrc[37]' \
But then with only four subjects in each group you most likely would have power problem: not enough power to identify activation regions. If you do have 8 subjects per group, you would need to add more subjects in the script.
Gang
Edited 2 time(s). Last edit at 10/30/2013 11:53AM by Gang.