Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: repeated measures anova


From   Simon Moore <[email protected]>
To   [email protected]
Subject   Re: st: repeated measures anova
Date   Tue, 22 Jan 2008 09:00:39 +0000

Thanks Dave - I let the ANOVA run overnight (rather than the xtmixed) and in the end got the results I was expecting. I've messed around with xtmixed but can't get similar results, despite the obvious speed advantages.
Cheers
Simon

David Airey wrote:

.

On second thought, I should not have guessed at the syntax, and I hope I didn't cause further confusion! You should check out Linear Mixed Models: A Practical Guide Using Statistical Software, Chapter 5, from the Stata bookstore which provides correct syntax in SAS, SPSS, R, and Stata for the analysis of a two factor within subjects repeated measures example. I would not use ANOVA for the data set you describe.

-Dave


Something like:

xi: xtmixed score i.factor1*i.factor2 || subject: || subject: R.factor1 || subject: R.factor2

may work, but ANOVA is using coding that makes comparisons to the grand mean whereas xi is using 1-0 coding.

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index