# 2 x 2 x 2 x 2 four-way ANOVA on surface data: 
# 1 between-subjects factor - 2 levels: young and old
# 3 within-subject factors:
# task - 2 levels: House and
# Image - 2 levels: Simple and Complex
# Clarity - 2 levels: Simplen and Complex

# All tests can be done with 3dttest++ or 3dMEMA!

3dMVM \
-prefix output.ANOVA.niml.dset \
-jobs 2 \
-model Group \
-wsVars 'Condition*Image*Clarity' \
-num_glt 9                      \
-gltLabel 1 Yng-Old -gltCode 1 'Group : 1*young -1*older'           \
-gltLabel 2 Per-Pro -gltCode 2 'Condition : 1*House -1*Face'  \
-gltLabel 3 Ima_Sim-Com -gltCode 3 'Image : 1*Simple -1*Complex'  \
-gltLabel 4 Cla_Sim-Com -gltCode 4 'Clarity : 1*Simple -1*Complex'  \
-gltLabel 5 Yng -gltCode 5 'Group : 1*young'           \
-gltLabel 6 Old -gltCode 6 'Group : 1*older'           \
-gltLabel 7 Yng_ImaSim_ClaSim_Hou-Fac -gltCode 7 'Group : 1*young Condition : 1*House -1*Face Image : 1*Simple Clarity : 1*Simple'           \
-gltLabel 8 Old_ConditionByIma_ClaSim_Interaction -gltCode 8 'Group : 1*older Condition : 1*House -1*Face Image : 1*Simple -1*Complex Clarity : 1*Simple' \
-gltLabel 9 Old_3way_interaction -gltCode 9 'Group : 1*older Condition : 1*House -1*Face Image : 1*Simple -1*Complex Clarity : 1*Simple -1*Complex' \
-dataTable \
Subj	Group Condition	Image   Clarity InputFile \
S1	young	House	Simple	Simple	data/G1S02.niml.dset'[0]' \
S1	young	House	Simple	Complex	data/G1S02.niml.dset'[1]' \
S1	young	House	Complex	Simple	data/G1S02.niml.dset'[2]' \
S1	young	House	Complex	Complex	data/G1S02.niml.dset'[3]' \
S1	young	Face	Simple	Simple	data/G1S02.niml.dset'[4]' \
S1	young	Face	Simple	Complex	data/G1S02.niml.dset'[5]' \
S1	young	Face	Complex	Simple	data/G1S02.niml.dset'[6]' \
S1	young	Face	Complex	Complex	data/G1S02.niml.dset'[7]' \
S2	young	House	Simple	Simple	data/G1S05.niml.dset'[0]' \
S2	young	House	Simple	Complex	data/G1S05.niml.dset'[1]' \
S2	young	House	Complex	Simple	data/G1S05.niml.dset'[2]' \
S2	young	House	Complex	Complex	data/G1S05.niml.dset'[3]' \
S2	young	Face	Simple	Simple	data/G1S05.niml.dset'[4]' \
S2	young	Face	Simple	Complex	data/G1S05.niml.dset'[5]' \
S2	young	Face	Complex	Simple	data/G1S05.niml.dset'[6]' \
S2	young	Face	Complex	Complex	data/G1S05.niml.dset'[7]' \
S3	young	House	Simple	Simple	data/G1S06.niml.dset'[0]' \
S3	young	House	Simple	Complex	data/G1S06.niml.dset'[1]' \
S3	young	House	Complex	Simple	data/G1S06.niml.dset'[2]' \
S3	young	House	Complex	Complex	data/G1S06.niml.dset'[3]' \
S3	young	Face	Simple	Simple	data/G1S06.niml.dset'[4]' \
S3	young	Face	Simple	Complex	data/G1S06.niml.dset'[5]' \
S3	young	Face	Complex	Simple	data/G1S06.niml.dset'[6]' \
S3	young	Face	Complex	Complex	data/G1S06.niml.dset'[7]' \
S4	young	House	Simple	Simple	data/G1S07.niml.dset'[0]' \
S4	young	House	Simple	Complex	data/G1S07.niml.dset'[1]' \
S4	young	House	Complex	Simple	data/G1S07.niml.dset'[2]' \
S4	young	House	Complex	Complex	data/G1S07.niml.dset'[3]' \
S4	young	Face	Simple	Simple	data/G1S07.niml.dset'[4]' \
S4	young	Face	Simple	Complex	data/G1S07.niml.dset'[5]' \
S4	young	Face	Complex	Simple	data/G1S07.niml.dset'[6]' \
S4	young	Face	Complex	Complex	data/G1S07.niml.dset'[7]' \
S5	young	House	Simple	Simple	data/G1S08.niml.dset'[0]' \
S5	young	House	Simple	Complex	data/G1S08.niml.dset'[1]' \
S5	young	House	Complex	Simple	data/G1S08.niml.dset'[2]' \
S5	young	House	Complex	Complex	data/G1S08.niml.dset'[3]' \
S5	young	Face	Simple	Simple	data/G1S08.niml.dset'[4]' \
S5	young	Face	Simple	Complex	data/G1S08.niml.dset'[5]' \
S5	young	Face	Complex	Simple	data/G1S08.niml.dset'[6]' \
S5	young	Face	Complex	Complex	data/G1S08.niml.dset'[7]' \
S6	young	House	Simple	Simple	data/G1S09.niml.dset'[0]' \
S6	young	House	Simple	Complex	data/G1S09.niml.dset'[1]' \
S6	young	House	Complex	Simple	data/G1S09.niml.dset'[2]' \
S6	young	House	Complex	Complex	data/G1S09.niml.dset'[3]' \
S6	young	Face	Simple	Simple	data/G1S09.niml.dset'[4]' \
S6	young	Face	Simple	Complex	data/G1S09.niml.dset'[5]' \
S6	young	Face	Complex	Simple	data/G1S09.niml.dset'[6]' \
S6	young	Face	Complex	Complex	data/G1S09.niml.dset'[7]' \
S7	young	House	Simple	Simple	data/G1S10.niml.dset'[0]' \
S7	young	House	Simple	Complex	data/G1S10.niml.dset'[1]' \
S7	young	House	Complex	Simple	data/G1S10.niml.dset'[2]' \
S7	young	House	Complex	Complex	data/G1S10.niml.dset'[3]' \
S7	young	Face	Simple	Simple	data/G1S10.niml.dset'[4]' \
S7	young	Face	Simple	Complex	data/G1S10.niml.dset'[5]' \
S7	young	Face	Complex	Simple	data/G1S10.niml.dset'[6]' \
S7	young	Face	Complex	Complex	data/G1S10.niml.dset'[7]' \
S8	young	House	Simple	Simple	data/G1S12.niml.dset'[0]' \
S8	young	House	Simple	Complex	data/G1S12.niml.dset'[1]' \
S8	young	House	Complex	Simple	data/G1S12.niml.dset'[2]' \
S8	young	House	Complex	Complex	data/G1S12.niml.dset'[3]' \
S8	young	Face	Simple	Simple	data/G1S12.niml.dset'[4]' \
S8	young	Face	Simple	Complex	data/G1S12.niml.dset'[5]' \
S8	young	Face	Complex	Simple	data/G1S12.niml.dset'[6]' \
S8	young	Face	Complex	Complex	data/G1S12.niml.dset'[7]' \
S9	young	House	Simple	Simple	data/G1S13.niml.dset'[0]' \
S9	young	House	Simple	Complex	data/G1S13.niml.dset'[1]' \
S9	young	House	Complex	Simple	data/G1S13.niml.dset'[2]' \
S9	young	House	Complex	Complex	data/G1S13.niml.dset'[3]' \
S9	young	Face	Simple	Simple	data/G1S13.niml.dset'[4]' \
S9	young	Face	Simple	Complex	data/G1S13.niml.dset'[5]' \
S9	young	Face	Complex	Simple	data/G1S13.niml.dset'[6]' \
S9	young	Face	Complex	Complex	data/G1S13.niml.dset'[7]' \
S10	young	House	Simple	Simple	data/G1S14.niml.dset'[0]' \
S10	young	House	Simple	Complex	data/G1S14.niml.dset'[1]' \
S10	young	House	Complex	Simple	data/G1S14.niml.dset'[2]' \
S10	young	House	Complex	Complex	data/G1S14.niml.dset'[3]' \
S10	young	Face	Simple	Simple	data/G1S14.niml.dset'[4]' \
S10	young	Face	Simple	Complex	data/G1S14.niml.dset'[5]' \
S10	young	Face	Complex	Simple	data/G1S14.niml.dset'[6]' \
S10	young	Face	Complex	Complex	data/G1S14.niml.dset'[7]' \
S11	young	House	Simple	Simple	data/G1S15.niml.dset'[0]' \
S11	young	House	Simple	Complex	data/G1S15.niml.dset'[1]' \
S11	young	House	Complex	Simple	data/G1S15.niml.dset'[2]' \
S11	young	House	Complex	Complex	data/G1S15.niml.dset'[3]' \
S11	young	Face	Simple	Simple	data/G1S15.niml.dset'[4]' \
S11	young	Face	Simple	Complex	data/G1S15.niml.dset'[5]' \
S11	young	Face	Complex	Simple	data/G1S15.niml.dset'[6]' \
S11	young	Face	Complex	Complex	data/G1S15.niml.dset'[7]' \
S12	young	House	Simple	Simple	data/G1S16.niml.dset'[0]' \
S12	young	House	Simple	Complex	data/G1S16.niml.dset'[1]' \
S12	young	House	Complex	Simple	data/G1S16.niml.dset'[2]' \
S12	young	House	Complex	Complex	data/G1S16.niml.dset'[3]' \
S12	young	Face	Simple	Simple	data/G1S16.niml.dset'[4]' \
S12	young	Face	Simple	Complex	data/G1S16.niml.dset'[5]' \
S12	young	Face	Complex	Simple	data/G1S16.niml.dset'[6]' \
S12	young	Face	Complex	Complex	data/G1S16.niml.dset'[7]' \
S13	young	House	Simple	Simple	data/G1S17.niml.dset'[0]' \
S13	young	House	Simple	Complex	data/G1S17.niml.dset'[1]' \
S13	young	House	Complex	Simple	data/G1S17.niml.dset'[2]' \
S13	young	House	Complex	Complex	data/G1S17.niml.dset'[3]' \
S13	young	Face	Simple	Simple	data/G1S17.niml.dset'[4]' \
S13	young	Face	Simple	Complex	data/G1S17.niml.dset'[5]' \
S13	young	Face	Complex	Simple	data/G1S17.niml.dset'[6]' \
S13	young	Face	Complex	Complex	data/G1S17.niml.dset'[7]' \
S14	young	House	Simple	Simple	data/G1S18.niml.dset'[0]' \
S14	young	House	Simple	Complex	data/G1S18.niml.dset'[1]' \
S14	young	House	Complex	Simple	data/G1S18.niml.dset'[2]' \
S14	young	House	Complex	Complex	data/G1S18.niml.dset'[3]' \
S14	young	Face	Simple	Simple	data/G1S18.niml.dset'[4]' \
S14	young	Face	Simple	Complex	data/G1S18.niml.dset'[5]' \
S14	young	Face	Complex	Simple	data/G1S18.niml.dset'[6]' \
S14	young	Face	Complex	Complex	data/G1S18.niml.dset'[7]' \
S15	young	House	Simple	Simple	data/G1S21.niml.dset'[0]' \
S15	young	House	Simple	Complex	data/G1S21.niml.dset'[1]' \
S15	young	House	Complex	Simple	data/G1S21.niml.dset'[2]' \
S15	young	House	Complex	Complex	data/G1S21.niml.dset'[3]' \
S15	young	Face	Simple	Simple	data/G1S21.niml.dset'[4]' \
S15	young	Face	Simple	Complex	data/G1S21.niml.dset'[5]' \
S15	young	Face	Complex	Simple	data/G1S21.niml.dset'[6]' \
S15	young	Face	Complex	Complex	data/G1S21.niml.dset'[7]' \
S16	older	House	Simple	Simple	data/G2S01.niml.dset'[0]' \
S16	older	House	Simple	Complex	data/G2S01.niml.dset'[1]' \
S16	older	House	Complex	Simple	data/G2S01.niml.dset'[2]' \
S16	older	House	Complex	Complex	data/G2S01.niml.dset'[3]' \
S16	older	Face	Simple	Simple	data/G2S01.niml.dset'[4]' \
S16	older	Face	Simple	Complex	data/G2S01.niml.dset'[5]' \
S16	older	Face	Complex	Simple	data/G2S01.niml.dset'[6]' \
S16	older	Face	Complex	Complex	data/G2S01.niml.dset'[7]' \
S17	older	House	Simple	Simple	data/G2S02.niml.dset'[0]' \
S17	older	House	Simple	Complex	data/G2S02.niml.dset'[1]' \
S17	older	House	Complex	Simple	data/G2S02.niml.dset'[2]' \
S17	older	House	Complex	Complex	data/G2S02.niml.dset'[3]' \
S17	older	Face	Simple	Simple	data/G2S02.niml.dset'[4]' \
S17	older	Face	Simple	Complex	data/G2S02.niml.dset'[5]' \
S17	older	Face	Complex	Simple	data/G2S02.niml.dset'[6]' \
S17	older	Face	Complex	Complex	data/G2S02.niml.dset'[7]' \
S18	older	House	Simple	Simple	data/G2S03.niml.dset'[0]' \
S18	older	House	Simple	Complex	data/G2S03.niml.dset'[1]' \
S18	older	House	Complex	Simple	data/G2S03.niml.dset'[2]' \
S18	older	House	Complex	Complex	data/G2S03.niml.dset'[3]' \
S18	older	Face	Simple	Simple	data/G2S03.niml.dset'[4]' \
S18	older	Face	Simple	Complex	data/G2S03.niml.dset'[5]' \
S18	older	Face	Complex	Simple	data/G2S03.niml.dset'[6]' \
S18	older	Face	Complex	Complex	data/G2S03.niml.dset'[7]' \
S19	older	House	Simple	Simple	data/G2S06.niml.dset'[0]' \
S19	older	House	Simple	Complex	data/G2S06.niml.dset'[1]' \
S19	older	House	Complex	Simple	data/G2S06.niml.dset'[2]' \
S19	older	House	Complex	Complex	data/G2S06.niml.dset'[3]' \
S19	older	Face	Simple	Simple	data/G2S06.niml.dset'[4]' \
S19	older	Face	Simple	Complex	data/G2S06.niml.dset'[5]' \
S19	older	Face	Complex	Simple	data/G2S06.niml.dset'[6]' \
S19	older	Face	Complex	Complex	data/G2S06.niml.dset'[7]' \
S20	older	House	Simple	Simple	data/G2S08.niml.dset'[0]' \
S20	older	House	Simple	Complex	data/G2S08.niml.dset'[1]' \
S20	older	House	Complex	Simple	data/G2S08.niml.dset'[2]' \
S20	older	House	Complex	Complex	data/G2S08.niml.dset'[3]' \
S20	older	Face	Simple	Simple	data/G2S08.niml.dset'[4]' \
S20	older	Face	Simple	Complex	data/G2S08.niml.dset'[5]' \
S20	older	Face	Complex	Simple	data/G2S08.niml.dset'[6]' \
S20	older	Face	Complex	Complex	data/G2S08.niml.dset'[7]' \
S21	older	House	Simple	Simple	data/G2S09.niml.dset'[0]' \
S21	older	House	Simple	Complex	data/G2S09.niml.dset'[1]' \
S21	older	House	Complex	Simple	data/G2S09.niml.dset'[2]' \
S21	older	House	Complex	Complex	data/G2S09.niml.dset'[3]' \
S21	older	Face	Simple	Simple	data/G2S09.niml.dset'[4]' \
S21	older	Face	Simple	Complex	data/G2S09.niml.dset'[5]' \
S21	older	Face	Complex	Simple	data/G2S09.niml.dset'[6]' \
S21	older	Face	Complex	Complex	data/G2S09.niml.dset'[7]' \
S22	older	House	Simple	Simple	data/G2S12.niml.dset'[0]' \
S22	older	House	Simple	Complex	data/G2S12.niml.dset'[1]' \
S22	older	House	Complex	Simple	data/G2S12.niml.dset'[2]' \
S22	older	House	Complex	Complex	data/G2S12.niml.dset'[3]' \
S22	older	Face	Simple	Simple	data/G2S12.niml.dset'[4]' \
S22	older	Face	Simple	Complex	data/G2S12.niml.dset'[5]' \
S22	older	Face	Complex	Simple	data/G2S12.niml.dset'[6]' \
S22	older	Face	Complex	Complex	data/G2S12.niml.dset'[7]' \
S23	older	House	Simple	Simple	data/G2S13.niml.dset'[0]' \
S23	older	House	Simple	Complex	data/G2S13.niml.dset'[1]' \
S23	older	House	Complex	Simple	data/G2S13.niml.dset'[2]' \
S23	older	House	Complex	Complex	data/G2S13.niml.dset'[3]' \
S23	older	Face	Simple	Simple	data/G2S13.niml.dset'[4]' \
S23	older	Face	Simple	Complex	data/G2S13.niml.dset'[5]' \
S23	older	Face	Complex	Simple	data/G2S13.niml.dset'[6]' \
S23	older	Face	Complex	Complex	data/G2S13.niml.dset'[7]' \
S24	older	House	Simple	Simple	data/G2S14.niml.dset'[0]' \
S24	older	House	Simple	Complex	data/G2S14.niml.dset'[1]' \
S24	older	House	Complex	Simple	data/G2S14.niml.dset'[2]' \
S24	older	House	Complex	Complex	data/G2S14.niml.dset'[3]' \
S24	older	Face	Simple	Simple	data/G2S14.niml.dset'[4]' \
S24	older	Face	Simple	Complex	data/G2S14.niml.dset'[5]' \
S24	older	Face	Complex	Simple	data/G2S14.niml.dset'[6]' \
S24	older	Face	Complex	Complex	data/G2S14.niml.dset'[7]' \
S25	older	House	Simple	Simple	data/G2S17.niml.dset'[0]' \
S25	older	House	Simple	Complex	data/G2S17.niml.dset'[1]' \
S25	older	House	Complex	Simple	data/G2S17.niml.dset'[2]' \
S25	older	House	Complex	Complex	data/G2S17.niml.dset'[3]' \
S25	older	Face	Simple	Simple	data/G2S17.niml.dset'[4]' \
S25	older	Face	Simple	Complex	data/G2S17.niml.dset'[5]' \
S25	older	Face	Complex	Simple	data/G2S17.niml.dset'[6]' \
S25	older	Face	Complex	Complex	data/G2S17.niml.dset'[7]' \
S26	older	House	Simple	Simple	data/G2S18.niml.dset'[0]' \
S26	older	House	Simple	Complex	data/G2S18.niml.dset'[1]' \
S26	older	House	Complex	Simple	data/G2S18.niml.dset'[2]' \
S26	older	House	Complex	Complex	data/G2S18.niml.dset'[3]' \
S26	older	Face	Simple	Simple	data/G2S18.niml.dset'[4]' \
S26	older	Face	Simple	Complex	data/G2S18.niml.dset'[5]' \
S26	older	Face	Complex	Simple	data/G2S18.niml.dset'[6]' \
S26	older	Face	Complex	Complex	data/G2S18.niml.dset'[7]' \
S27	older	House	Simple	Simple	data/G2S20.niml.dset'[0]' \
S27	older	House	Simple	Complex	data/G2S20.niml.dset'[1]' \
S27	older	House	Complex	Simple	data/G2S20.niml.dset'[2]' \
S27	older	House	Complex	Complex	data/G2S20.niml.dset'[3]' \
S27	older	Face	Simple	Simple	data/G2S20.niml.dset'[4]' \
S27	older	Face	Simple	Complex	data/G2S20.niml.dset'[5]' \
S27	older	Face	Complex	Simple	data/G2S20.niml.dset'[6]' \
S27	older	Face	Complex	Complex	data/G2S20.niml.dset'[7]' \
S28	older	House	Simple	Simple	data/G2S22.niml.dset'[0]' \
S28	older	House	Simple	Complex	data/G2S22.niml.dset'[1]' \
S28	older	House	Complex	Simple	data/G2S22.niml.dset'[2]' \
S28	older	House	Complex	Complex	data/G2S22.niml.dset'[3]' \
S28	older	Face	Simple	Simple	data/G2S22.niml.dset'[4]' \
S28	older	Face	Simple	Complex	data/G2S22.niml.dset'[5]' \
S28	older	Face	Complex	Simple	data/G2S22.niml.dset'[6]' \
S28	older	Face	Complex	Complex	data/G2S22.niml.dset'[7]' \
S29	older	House	Simple	Simple	data/G2S23.niml.dset'[0]' \
S29	older	House	Simple	Complex	data/G2S23.niml.dset'[1]' \
S29	older	House	Complex	Simple	data/G2S23.niml.dset'[2]' \
S29	older	House	Complex	Complex	data/G2S23.niml.dset'[3]' \
S29	older	Face	Simple	Simple	data/G2S23.niml.dset'[4]' \
S29	older	Face	Simple	Complex	data/G2S23.niml.dset'[5]' \
S29	older	Face	Complex	Simple	data/G2S23.niml.dset'[6]' \
S29	older	Face	Complex	Complex	data/G2S23.niml.dset'[7]'

