Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: Unordered Categorical Predictor Variable


From   louis grandjean <lgrandjean@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Unordered Categorical Predictor Variable
Date   Thu, 24 Jan 2013 10:08:48 -0500

Dear Statalist,

I'm using Stata 11 and am struggling with how to best analyse an
unordered categorical predictor in a logistic regression.

My categorical predictor is "bacterial family" so it doesn't make
sense to always compare one family to an arbitrarily chosen reference
family.  What I want to do is compare each family in turn to all the
other families.

I think deviation coding would give me one family vs the mean of all
the families, but I want to get one family vs the other famlies, and
obtain an odds ratio for each level.

I've looked at xi3 but this doesn't seem to answer the problem.

I'd be very grateful for your thoughts.

Best wishes Louis
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index