Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[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 <Tim.Evans@wmciu.nhs.uk>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index