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 on April 23, and its replacement, statalist.org is already up and running.


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

RE: 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   RE: st: Is it possible to specify a baseline category without -xi:-
Date   Fri, 2 Dec 2011 15:20:43 +0000

Thank you very much Richard, that's brilliant; did the trick perfect.


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Richard Williams
Sent: 02 December 2011 15:16
To: statalist@hsphsun2.harvard.edu; 'statalist@hsphsun2.harvard.edu'
Subject: Re: st: Is it possible to specify a baseline category without -xi:-

At 10:00 AM 12/2/2011, Tim Evans wrote:
>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.

logistic firstcentrespec2 ib5.dep i.age

You can also use the -fvset- command to set the base level permanently.

-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME:   (574)289-5227
EMAIL:  Richard.A.Williams.5@ND.Edu
WWW:    http://www.nd.edu/~rwilliam

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

_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