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]

Re: st: RE: question about value labels


From   John Luke Gallup <jlgallup@pdx.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: question about value labels
Date   Fri, 29 Jul 2011 16:01:22 -0700

Alberto,

You can replace the variable name with a variable label in -outreg- (and in -estout-, although I am less familiar with the syntax).  -outreg-, which is downloadable from SSC, takes Stata's estimation output and reorganizes the table (if you want), which can be written to a Word or a LaTeX file.  You can apply variable labels with the following command:

. qreg ...
. outreg, varlabel

John

On Jul 29, 2011, at 7:10 AM, Nick Cox wrote:

> I guess you mean variable labels. This kind of problem is usually tackled in one way or another by user-written reporting programs. Users of -outreg- (SSC) or -estout- (SSC) may be able to help. 
> 
> Stata's problem with putting variable labels in that place is at least twofold. First, variable labels can easily be too long to fit in the space available. Second, variable labels can contain characters not allowed in tagging coefficients and other results. 
> 
> Nick 
> n.j.cox@durham.ac.uk 
> 
> Alberto R Osella
> 
> I'm using Stata 11.2 on W7 32.
> This is my problem. When I run quantile (or other estimation command) 
> regression
> I obtain this results:
> 
> ------------------------------------------------------------------------------
>              |              Bootstrap
>          BMI |      Coef.   Std. Err.      t    P>|t|     [95% Conf. 
> Interval]
> -------------+----------------------------------------------------------------
> q83          |
>      Etarecl |   .4231606    .077804     5.44   0.000     .2705788    
> .5757424
>    _ISesso_1 |  -2.084183   .3866436    -5.39   0.000    -2.842432   
> -1.325934
> _INewStatC~2 |  -2.012533   1.533809    -1.31   0.190    -5.020495    
> .9954286
> _INewStatC~3 |   2.189235   1.099711     1.99   0.047     .0325863    
> 4.345883
> _INewStatC~4 |   .2256583   .6364043     0.35   0.723    -1.022398    
> 1.473714
>        Età_q |  -.0038322   .0007235    -5.30   0.000    -.0052511   
> -.0024133
> _IProfessi~1 |  -.9928611   .8899386    -1.12   0.265    -2.738125    
> .7524025
> _IProfessi~2 |   -.714227   .8651048    -0.83   0.409    -2.410789    
> .9823349
> _IProfessi~3 |  -.0487982   1.022199    -0.05   0.962    -2.053439    
> 1.955843
> 
> As I want to pass this result to a tex table I'd like to put the 
> original the original value labels, that is:
> Divorced and not _INewStatC~2.
> Is there a way to do this automatically?
> 
> *
> *   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/
> 


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