Statalist The Stata Listserver


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

RE: st: Displaying full variable names using "summarize"


From   Fred Wolfe <[email protected]>
To   [email protected]
Subject   RE: st: Displaying full variable names using "summarize"
Date   Wed, 05 Apr 2006 13:38:19 -0500

At 12:24 PM 4/5/2006, you wrote:
Clint gave a good answer.

Another one is to write your own wrapper for -summarize-.
Here is an example.

. sysuse auto, clear
(1978 Automobile Data)

. wsummarize

                  Obs      Mean        SD       Min       Max
price              69   6146.04   2912.44   3291.00  15906.00
mpg                69     21.29      5.87     12.00     41.00
rep78              69      3.41      0.99      1.00      5.00
headroom           69      3.00      0.85      1.50      5.00

<snip>

You could also use -fsum- (ssc install fsum)

. gen thisisaverylongvariablename = age
(473 missing values generated)

. fsum age this

Variable | N Mean SD Min Max
-----------------------------+---------------------------------------------
Age (years) | 218860 61.71 12.84 12.72 103.74
thisisaverylongvariablename | 218860 61.71 12.84 12.72 103.74




Fred Wolfe
National Data Bank for Rheumatic Diseases
Wichita, Kansas
Tel (316) 263-2125 Fax (316) 263-0761
[email protected]


*
* 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index