Statalist


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

Re: st: xtmixed model specification for mixed ANOVA


From   David Airey <david.airey@Vanderbilt.Edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: xtmixed model specification for mixed ANOVA
Date   Thu, 24 Apr 2008 11:54:18 -0500

.

I'm not sure your description will be enough for helpful replies.

Maybe you could describe the experimental design.

In the mean time, there are some example equivalencies between ANOVA and xtmixed at:

http://www.ats.ucla.edu/stat/stata/faq/xtmixed.htm

Cheers,

-Dave

On Apr 24, 2008, at 10:13 AM, Olga Lyashevska wrote:


Dear List,

We would like to estimate a mixed effect anova by using xtmixed command.
y dependent variable
r random effect
f1
f2
f3 are fixed effects

f1f2
f2f3 are covariates

I am not sure about model specification. Could you please comment on it?

%we generate covariates

egen f1f2=group(f1f2), label
egen f2f3=group(f2f3), label

% use xtmixed

xtmixed y f1 f2 f3 || r || f1f2 f2f3

Thank you in advance!
Olga


*
* 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index