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 at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: How do I run a 3-way repeated ANOVA?


From   Philip Ender <ender97@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: How do I run a 3-way repeated ANOVA?
Date   Wed, 17 Mar 2010 10:16:49 -0700

"RAMPL Linn" <Linn.RAMPL@insead.edu> wrote:
>I am trying to run a 3-way repeated ANOVA on Stata with Y and X1 X2 X3
>(all X being repeated variables) with SUBJCECT being repeated factor.

Kirk calls this design a randomized block factorial.  Using Stata 11
notation the model looks like this,

. anova y x1##x2##x3 subject

You can also run it using -xtmixed- and get the same results,

.  xtmixed y x1##x2##x3 || subject:

The trick with -xtmixed- is to remember that with dummy coding you
don't get the "true" main effects and two-way interaction using a
simple test statements.  You need to use one of the methods on this
page http://www.ats.ucla.edu/stat/stata/faq/main_effects.htm.


Phil
-- 
Phil Ender
UCLA Statistical Consulting Group
*
*   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index