# How to set up a two-way mixed ANOVA with a covariate in SPSS?

I wanted to carry out a two-way ANCOVA for my data. However, SPSS isn't liking that I have only one IV.

I have

• One IV: Group (3 levels, i.e. 2 experimental groups and a control group),
• One DV: outcome measure (2 levels, i.e. time 1 and time 2),
• One covariate (I have checked and this demographic continuous variable moderately correlates with the DV).

Please could someone help as to whether I am missing something in terms of putting this into SPSS?

• you sound strange. "Two way" ANOVA or ANCOVA needs 2 independent categorical vars ("factors") by definition. Your data is one-way ANCOVA. Next, because your predictant is only 2 levels (fixed, I assume) you'd better go to Binary Logistic regression procedure instead of GLM. – ttnphns Mar 14 '11 at 16:08
• @ttnphns Assuming "you sound strange" means "let me correct you on some points" and "predictant" means "dependent variable," I agree with what you're saying. – rolando2 Mar 14 '11 at 21:50
• I think the confusion here is a matter of language. "Time" is your second IV. The DV does not have two levels. "Time" has two levels. Your DV, I am assuming, is metric. – Jeromy Anglim Apr 15 '11 at 3:48

I am guessing that you have your data in wide format. This seems to be causing you confusion because in wide format it is less obvious that "time" is your second independent variable.

One option in SPSS for doing what it sounds like you want to do:

1. Analyze -- GLM -- Repeated Measures
2. Enter time as repeated measures factor with two levels
3. Enter Group as a between subjects factor
4. Enter the dependent variable (presumably represented as two variables in SPSS as your two times points)
5. Enter your covariate in the covariate box