Statalist


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

Re: st:"sum" showing varible labels


From   "Sergiy Radyakin" <serjradyakin@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st:"sum" showing varible labels
Date   Tue, 22 Jul 2008 20:03:04 -0400

sysuse auto
sum *,d

shows all the information you want, but the output is not in one table
as you wish for.

sum saves the results in r(). You can summarize for each variable,
accumulate the output and dump into one table.

Best regards, Sergiy



On 7/22/08, Man Jia <jia.m@neu.edu> wrote:
> Hi all,
>
> 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.
>
> Thanks for your help! I really appreciate it.
>
> Man Jia
> *
> *   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   |   What's new   |   Site index