Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st:"sum" showing varible labels


From   Svend Juul <[email protected]>
To   <[email protected]>
Subject   Re: st:"sum" showing varible labels
Date   Thu, 24 Jul 2008 23:13:13 +0200

Man Jia wrote:
 
Could anyone give me some suggestion of how to show variable labels in 
summarize command output ? Now STATA shows variables names in the 
output of "sum" command.  I was wondering if it's possible to show 
variable labels instead of variable name or together with variable 
names.
 
Now stata shows:
    Variable |       Obs        Mean    Std. Dev.       Min        Max
-------------+--------------------------------------------------------
     exp             
 
What I want is:
 
  Variable     |       Obs        Mean    Std. Dev.       Min        Max
-------------+--------------------------------------------------------
total working      
 experience            
 
or it's also fine to show both variable names and labels.
 
==============================================================
 
You got a couple of unofficial solutions to your very sensible
wish. An official solution is:
 
   . codebook , compact            // all variables
 
   . codebook exp , compact
 
Hope this helps
Svend
 
________________________________________________________ 
 
Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6 
DK-8000 Aarhus C,  Denmark 
Phone, work:   +45 8942 6090 
Phone, home:   +45 8693 7796 
Fax:           +45 8613 1580 
E-mail:        [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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index