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: Labeling variable values in Regression Tables


From   "Weichle, Thomas" <[email protected]>
To   <[email protected]>
Subject   st: Labeling variable values in Regression Tables
Date   Thu, 10 Jun 2010 10:21:03 -0500

Hi Statalisters,
Is anyone familiar with a way to have the values of the categorical
independent variables show up in regression tables?  For instance, for
the variable agegrp, I'd like to see the value of 2 show up as "45-54",
3 as "55-64", 4 as "65-74", and so on.
Here is the code I used and sample output.

logistic epo i.agegrp b5.race i.region

Logistic regression                               Number of obs   =
36160
                                                  LR chi2(22)     =
3690.76
                                                  Prob > chi2     =
0.0000
Log likelihood = -12140.041                       Pseudo R2       =
0.1320

------------------------------------------------------------------------
------
         epo | Odds Ratio   Std. Err.      z    P>|z|     [95% Conf.
Interval]
-------------+----------------------------------------------------------
------
      agegrp |
          2  |   1.207405   .2946952     0.77   0.440     .7483374
1.948087
          3  |   1.451075   .3476943     1.55   0.120     .9072611
2.320853
          4  |   1.459593   .3499843     1.58   0.115     .9122812
2.335257
          5  |   1.397143    .336226     1.39   0.165     .8717604
2.239158
          6  |   1.476874   .3869251     1.49   0.137     .8837672
2.468023
             |
        race |
          1  |   .9456545   .2751482    -0.19   0.848     .5346461
1.672625
          2  |   .7645491   .1574024    -1.30   0.192      .510697
1.144583
          3  |   1.207895   .0533937     4.27   0.000     1.107651
1.317212
          4  |   .7717255   .1864392    -1.07   0.283     .4806437
1.239089
             |
      region |
          2  |   .9662771   .0466346    -0.71   0.477     .8790647
1.062142
          3  |   .7545818   .0425617    -4.99   0.000     .6756082
.842787
          4  |   .7612094    .044896    -4.63   0.000     .6781104
.8544918
------------------------------------------------------------------------
------

Tom Weichle
Math Statistician
Center for Management of Complex Chronic Care (CMC3)
Hines VA Hospital, Bldg 1, C202
708-202-8387 ext. 24261
[email protected] 

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