Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: st: rmanova or anova with repeated command, what to use?

From   "Airey, David C" <>
To   "" <>
Subject   re: st: rmanova or anova with repeated command, what to use?
Date   Sun, 9 Oct 2011 14:32:32 -0500


        Baseline Placebo Active
        t0-t6    t0-t6   t0-t6

Some useful examples for using ANOVA in Stata, other than the manual, are
found at:

The ANOVA command in Stata for two repeated measures factors is shown
in the last link here:

You would use:

anova response subject time / subject#time group / subject#group time#group, repeated(time group)

You might not want to estimate a mean for every time point. 
You might instead want a linear or polynomial contrast. 
You might also want to use t0 to form differences with t1 to t6. 
Some people suggest using the baseline variable as a covariate too, 
even if you do that.

The sphericity assumptions of repeated measures ANOVA are probably 
not met in this experiment, so the p-values will be approximate 
after the G-G correction factor. You could alternatively try xtimixed 
with different covariance structure. A good book to help with that 
other than the manuals and the second link above is in the book store:

If you really wanted to look at just a time slice using ANOVA, 
you would have a simple repeated measures model with one within 
subject factor, e.g.,

anova response subject group if time == 1, rep(group)


bysort time: anova response subject group, rep(group)


*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index