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]

st: Useful labelling of dummy variables following logit


From   Tim Evans <Tim.Evans@wmciu.nhs.uk>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   st: Useful labelling of dummy variables following logit
Date   Wed, 24 Aug 2011 11:12:19 +0100

Hi all,

I'm running a logistic regression analysis (logit) in Stata11.2and capturing the output in a log file to which I intend to refer to even when not using Stata. However, the dummy variables in the table output is not user friendly in that I need to be looking at Stata to decode the dummy variables and I wanted to know whether there was a way to get Stata to label up the dummy variables? I'm using the following command:

xi: logit Early1  i.eth2 age i.invsurg i.region i.dep if dep!=9 & sex==2, or


                                                                                                
Early1                    Odds Ratio          Std. Err.                z              P>|z|    [95% Conf.          Interval]
                                                                                                
_Ieth2_1              1.165449              .113469 1.57        0.116     .9629855              1.41048
_Ieth2_2              2.66589 			.473757 5.52        0.000     1.881805              3.776677
_Ieth2_5              .9903815              .121772 -0.08      0.937     .7782934              1.260264
_Ieth2_6              .7652514              .0267263              -7.66      0.000     .7146214              .8194685
age       		  .9943461              .0009068              -6.22      0.000     .9925704              .996125
_Iinvsurg_2        .0365412              .0032568              -37.13    0.000     .0306844              .0435159
_Iregion_2          1.457495              .1253217              4.38        0.000     1.231451              1.725032
_Iregion_3          .9105776              .0448719              -1.90      0.057     .8267439              1.002912
_Iregion_4          1.309589              .0657864              5.37        0.000     1.186794              1.445089
_Iregion_5          1.065981              .0660735              1.03        0.303     .9440362              1.203677
_Iregion_6          .9648361              .0446637              -0.77      0.439     .8811506              1.056469
_Iregion_7          1.468088              .0864758              6.52        0.000     1.308017              1.647749
_Iregion_8          2.140523              .1040831              15.65     0.000     1.945943              2.354559
_Iregion_9          1.443195              .0810467              6.53        0.000     1.292776              1.611116
_Iregion_10        1.030607              .052322 0.59        0.553     .9329949              1.138432
_Iregion_11        1.997509              .1419206              9.74        0.000     1.737848              2.295967
_Ideprivat~2      .9294862              .0398247              -1.71      0.088     .8546188              1.010912
_Ideprivat~3      .8303109              .0343975              -4.49      0.000     .7655575              .9005414
_Ideprivat~4      .8511112              .0347818              -3.94      0.000     .7855989              .9220867
_Ideprivat~5      .8031848              .0327707              -5.37      0.000     .7414565              .8700523
_Ideprivat~9      (omitted)

I would like to know if its possible to get Stata to label up _lregion_8 for example - (but all dummy variables labelled)

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