# What's the proper way to control for gender effect in a repeated measure anova (on SPSS)

I need some help to be sure I am using SPSS right (in this case, putting the variables in their right places).

I have a 3 (3 different conditions/groups) x 5 ( time 1, 2, 3, 4, 5) and I want to control for gender effect on this data.

At first I used to put gender in the "covariate" box of spss repeated measures analysis, because I thought that covariate would mean anything you want to control for. Yet I have read other sources that says anything categorical goes into "fixed factors". Obviously my results are not the same if I put gender in fixed factors or covariate, so I want to be sure I'm doing things right.

If it goes into fixed factors, then I was wondering if there was anything special to do to tell spss that I want it to remove the effect of gender and not count it with the same importance as the conditions (which is what I want to look at), is there any way to do this ?

Thanks in advance for any help and I hope this is clear, please let me know if you need additional informations!

Regards

Ian

• SPSS is interesting. It seems continuous variables are called "covariates" and discrete variables are called "factors" in SPSS, And whether it is "fixed" or "random" is dependent on your assumptions, i think Jul 10, 2015 at 14:26
• Yeah that's my problem, I want to be 100% sure I understand spss labeling right, because I have found examples of people putting gender in the covariate box. It's confusing (and of consequences on the results) Jul 10, 2015 at 14:36

First, if your design is fully repeated measures, then you have already controlled for gender experimentally. All data is analyzed within subject, and there are not gender differences within subject. Adding gender to the model only further decomposes the between subjects error term, not the within subject factors/error. Of course, there can still be manipulation by gender interactions, but that's separate from controlling for gender. If you meant that your design is a between by within mixed model ANOVA, then the gender covariate will only affect the between subject main effect results. Assuming this is what you mean, I have included the answer below.

You can put it either in fixed factors or covariates. For fixed factors, SPSS defaults to including interactions between all fixed factors. This is probably good since you probably want to know if there are important gender interactions with your manipulation. If there is an interaction, your results are likely much more complex than you hoped for. But there could be important insights there. Also, if there is an interaction, then you violate one of the assumptions of ANCOVA (homogeneity of regression), and you should not analyze the results of a model where you only control for gender.

If you use covariate, make sure you have contrasts set. Though if you only have a M/F gender variable it doesn't matter really. If you have, for instance, male, female, other, and you just had them labeled 1, 2, 3 in your data, SPSS will naturally consider that a numerical variable.

For your other question, I'm unsure what you mean by "importance." If you want to control for gender, you want to analyze only the variance in your DV that could not be explained by gender. SPSS defaults to using type 3 sum of squares, which gives the marginal effect for each variable (i.e. every variable controlling for every other variable). They all have the same importance, but I think this is exactly what you want. If you want a more classic ANCOVA, you would assign all the variance that could be attributed to your covariate first, then analyze the remaining variance for your manipulations. In a sense, gender is treated as more important here. You will get the same results for your manipulations, and the F value will be higher for the gender effect (but in ANCOVA your not really analyzing the covariate anyway). If you treat gender as less important, i.e. only analyzing remaining variance after removing variance attributable to the manipulations, then you're not controlling for gender at all. The results would be the same for the manipulations as if gender was not there at all. So, in short, just use SPSS's default behavior. It is doing what you want it to do.