>  aov.out <- aov(response~diagnosis*gender,data)

Just add it where you think it belongs in the
sequential sum of squares

To adjust the factors for the covariate use
aov.out <- aov(response ~ age + diagnosis*gender, data)

To adjust the covariate for the factors
aov.out <- aov(response ~ diagnosis*gender + age, data)

If you want to check for interaction of the factors with the
covariate, then use * instead of + in the formula.

Please note that I added spaces to your statement to improve human legibility.

Rich

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to