Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[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–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index