Hi List,
I would like to know how to control for an independent continuous variable when using a repeated measures ANOVA. I have a 2x2 factorial design experiment with males and females in each of the treatment groups (T1 & T2) measured at multiple "events", each subject assigned an "id". The subjects are all different ages so I would like to be able to control for the effect of "age range".
If I didn't have "age range" as a covariate my model would be as follows:
anova x T1 T2 sex T1*T2 T1*sex T2*sex T1*T2*sex/id|T1*event T2*event T1*T2*event sex*event sex*T1*event sex*T2*event T1*T2*sex*event, repeated(event) partial bse(id|T1*T2*sex)
Do I use the ANCOVA and cont(age range) command? Is this output the effects of my fixed factors taking into account the effect of age range?
Thanks.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/