help > Design matrix
Mar 29, 2017  02:03 AM | Xiaonan Guo
Design matrix
Dear Andrew,
Thanks for the awesome toolbox. Recently I'm conducting an  ANOVA analysis with two groups using the NBSglm function where I would like to examine the effects of age on these two groups. Additionally. gender should be taken as covariates in the model.
Here is a short example of my design matrix:
1  0.5  0.5  -1  1
1  -0.5  -0.5 -1  1
1  -0.5  -0.5 1  1
-1 0.5  -0.5  1  1
-1 0.5   -0.5  -1  1
-1 -0.5  0.5  -1  1
Where the first column is the group, the second column the demeaned age, 3rd the interaction effect between group and age, 4th column is gender and 5th the intercept.
My F contrasts would be [1 0 0 0 0],[0 1 0 0 0],[0 0 1 0 0] for main effects of group and age and interaction effect, respectively.
I'm wondering whether my design and contrast matrices are correct or not. Could you please tell whether my understanding is correct?

Best,
Xiaonan

Threaded View

TitleAuthorDate
Design matrix
Xiaonan Guo Mar 29, 2017
Andrew Zalesky Mar 29, 2017
Xiaonan Guo Mar 29, 2017