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: Is it possible to specify a baseline category without -xi:-


From   Tim Evans <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: Is it possible to specify a baseline category without -xi:-
Date   Fri, 2 Dec 2011 15:00:22 +0000

Hi 

I'm running the following logistic regression model (Stata 11.2):

logistic firstcentrespec2 i.dep i.age

Dep is deprivation quintile. Currently the baseline is 1 (Most deprived) (in the range 1-5), but what I really want is 5(Most affluent) to be the baseline. I tried the following code to achieve this:

char dep[omit] 5
logistic firstcentrespec2 i.dep i.age

However, the baseline still remains 1. If I do this though, I can get the right baseline:

xi: logistic firstcentrespec2 i.dep i.age

The problem is that I cant generate the baseline category when using -parmest- ( a user written package - Roger Newson I believe), which I can when I don't use -xi-.
Does anyone have any ideas how I can specify the baseline without using -xi- in my code? (I guess one crude way would be to recode 5 to 1).

Best wishes

Tim
_DISCLAIMER:
This email and any attachments hereto contains proprietary information, some or all of which may be confidential or legally privileged. It is for the exclusive use of the intended recipient(s) only. If an addressing or transmission error has misdirected this e-mail and you are not the intended recipient(s), please notify the author by replying to this e-mail. If you are not the intended recipient you must not use, disclose, distribute, copy, print, or rely on this e-mail or any attachments, as this may be unlawful.


*
*   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