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]

Re: st: Change reference group in logistic regression


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Change reference group in logistic regression
Date   Thu, 3 Feb 2011 14:57:23 +0000 (GMT)

--- On Thu, 3/2/11, Morten Stover wrote:
> I want to change reference group doing a logistic 
> regression analysis on highest level of education and
> future work disability. The data is coded 1=primary,
> 2 =secondary and 3=tertiary, and I would like tertiary 
> to be the reference group. I've done this in cox
> regression using char and [omit], but I can't get this
> to work in log reg. 

I am assuming you are using the -xi- prefix. I cannot 
replicate your problem. The example below works as 
expected.

*--------- begin example ----------
sysuse auto, clear
recode rep78 1/2=3

char rep78[omit] 5
xi: logit foreign i.rep78
*----------- end example -----------

Can you change the example above such that it reproduces
your problem? Seeing the problem on your own computer in 
examples like that really help in diagnosing the problem.

-- Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://www.maartenbuis.nl
--------------------------


      

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index