Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: tabstat and variable label


From   Alvine BISSERY <alvine.bissery@chu-lyon.fr>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: tabstat and variable label
Date   Fri, 05 Aug 2005 14:42:11 +0200

Thank you, it's that .. but it don't support 8.2 version !

Svend Juul a écrit :

> Alvine wrote:
>
> I use the "tabstat"  function for numeric variable.
> I'm surprised that the table don't display the label of the variable,
> but its name.
> Is it a way to display the variable label in place of its name ?
>
> ------------------------------------------
>
> Apparently you are right, but fortunately somebody else felt the same
> need. Try
>   . findit table label
> and locate -fsum-.
>
> . sysuse auto
>
> . tabstat price-headroom , stat(n mean sd) col(stat)
>
>     variable |         N      mean        sd
> -------------+------------------------------
>        price |        74  6165.257  2949.496
>          mpg |        74   21.2973  5.785503
>        rep78 |        69  3.405797  .9899323
>     headroom |        74  2.993243  .8459948
> --------------------------------------------
>
> . fsum price-headroom , stat(n mean sd) label
>
>  Variable |        N     Mean       SD
> ----------+---------------------------
>     price |       74  6165.26  2949.50  Price
>       mpg |       74    21.30     5.79  Mileage (mpg)
>     rep78 |       69     3.41     0.99  Repair Record 1978
>  headroom |       74     2.99     0.85  Headroom (in.)
>
> . fsum price-headroom , stat(n mean sd) uselabel
>
>            Variable |        N     Mean       SD
> --------------------+---------------------------
>               Price |       74  6165.26  2949.50
>       Mileage (mpg) |       74    21.30     5.79
>  Repair Record 1978 |       69     3.41     0.99
>      Headroom (in.) |       74     2.99     0.85
>
> Is that what you need?
>
> 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: +45 8942 6090
> Home:  +45 8693 7796
> Email: sj@soci.au.dk
> __________________________________________
>
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/

--
*****************************************************
Alvine BISSERY
Service de Biostatistique des Hospices Civils de Lyon
162 Avenue Lacassagne
69424 Lyon Cedex 03 - France

tél: +33 4 72 11 57 55
fax: +33 4 72 11 51 41


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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