Statalist


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

Re: st: distinguishing categorical from ordinal variables in xtmixed


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: distinguishing categorical from ordinal variables in xtmixed
Date   Thu, 24 Apr 2008 19:24:23 +0100 (BST)

--- Olga Lyashevska <[email protected]> wrote:
> We are trying to use xtmixed as a mixed effect anova taking advantage
> of maximum likelihood estimation.
> 
> In xtmixed Stata seems to interprete categorical (cardinal) fixed
> factors (such as colour) as ordinals. How do we get Stata to treat
> these as a simple categorical?
> 
> e.g.
> 
> xtmixed y colour || individual
> 
> where y is dependent continuous variable, colour is
> {red,green,blue}(coded with an integer) and individual is a random
> factor (coded with an integer)
> 
> produces output in terms of regression coefficients etc. implying
> that STATA interpreted the categoricals as ordinal variables. As
> though the order was important, but of course it is not for
> categorical.

Have a look at -help xi- or the more flexible -findit xi3-.

Hope this helps,
Maarten

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


      ___________________________________________________________ 
Yahoo! For Good. Give and get cool things for free, reduce waste and help our planet. Plus find hidden Yahoo! treasure 

http://green.yahoo.com/uk/earth-day/
*
*   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