Hi Yuanchao -

Sorry for the delay.


On 27 April 2010 04:10, Zhangyuanchao <[log in to unmask]> wrote:
Dear FSL experts,
 
      I want to make three group (disease1, disease2 and normal control) comparisions with two covariants (age and gender), that is, ANCOVA. However, I am not sure the design matrix and the contrasts are accurate. Could you please hep me examine them? For example, I have 10 samples and I want to answer whether there are significant differences between any of two groups and then post-hoc t test which two groups the differences exist in. I set the design matrix and contrasts as follows:
 
Design Matrix:
 
Group  EV1(D1)  EV2(D2) EV3(NC) EV4(Age) EV5(Gender)
1           1               0           0          22            1
1           1               0           0          25            0
1           1               0           0          23            1
1           0               1           0          22            1
1           0               1           0          26            0
1           0               1           0          24            0
1           0               0           1          23            1
1           0               0           1          24            0
1           0               0           1          26            1
1           0               0           1          23            1
 
Design Contrasts:
Total differecese:
1        1          1          0      0        F-test
Other t-tests:
1        -1         0          0      0
-1        1         0          0      0
0         1        -1          0      0
0         -1        1          0      0
1         0        -1          0      0
-1        0         1          0      0
 

Close.  You pretty much want to follow the ANOVA 1-factor 4-levels example in the FEAT details examples (obviously removing the extra level), and then add columns for the age and gender covariates (you should demean these).  

Depending on your hypotheses and how the diseases are related, another option could be simply to first have a regressor modelling difference between disease and non/disease and then a regressor modelling the difference between the two diseases, and doing separate t/f tests on these.

Cheers,

Eugene



 
Do you think it is correct for the design matrix and contrasts?
 
Thank you very much for your help!
 
Best,
 
Yuanchao