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

st: Update fsum program


From   Fred Wolfe <fwolfe@arthritis-research.org>
To   statalist@hsphsun2.harvard.edu
Subject   st: Update fsum program
Date   Tue, 16 Aug 2005 08:08:17 -0500

Thanks to Kit Baum, an updated version (v 2.4.0)of -fsum- is now available. Also included in the package is a new program -nlabel- (v1.03).

The major change to -fsum- as been to add a "not() option. In the example below all of the variables displayed begin with the letter "t". However one of them is not wanted (totinc). The example below shows how the -not- option works. It saves considerable typing of the varlist.


. fsum t*, f(%9.1f)

Variable | N Mean SD Min Max
---------------------------+---------------------------------------------
Total Income (US dollars) | 92452 45845.7 28833.4 5000.0 100000.0
Physical function (SF-36) | 94837 49.3 28.5 0.0 100.0
Physical role (SF-36) | 93549 40.7 41.9 0.0 100.0
Pain total (SF-36) | 98861 38.8 16.3 0.0 100.0
General health (SF-36) | 94051 50.8 22.9 0.0 100.0
Vitality (SF-36) | 98811 44.9 23.2 0.0 100.0
Social function (SF-36) | 98952 71.8 26.5 0.0 100.0
Emotional role (SF-36) | 97018 66.6 41.4 0.0 100.0
Mental health (SF-36) | 98712 74.9 18.1 0.0 100.0

. fsum t*, f(%9.1f) not(totinc)

Variable | N Mean SD Min Max
---------------------------+---------------------------------------------
Physical function (SF-36) | 94837 49.3 28.5 0.0 100.0
Physical role (SF-36) | 93549 40.7 41.9 0.0 100.0
Pain total (SF-36) | 98861 38.8 16.3 0.0 100.0
General health (SF-36) | 94051 50.8 22.9 0.0 100.0
Vitality (SF-36) | 98811 44.9 23.2 0.0 100.0
Social function (SF-36) | 98952 71.8 26.5 0.0 100.0
Emotional role (SF-36) | 97018 66.6 41.4 0.0 100.0
Mental health (SF-36) | 98712 74.9 18.1 0.0 100.0



The package now includes -nlabel-, a label making utility that makes it very easy to make tlabels at the time of label creation/modification. tlabels are what produce the useful variable description at the left of the table. -nlabel- also makes variables notes and has other features. It can be used as as substitute for -label-.

fsum is a general purpose summary statistic program. Its display can be formatted with appropriate labels and variable formats so that its output can be pasted into a word processor without the need for further alterations within the word processor.

fsum provides summary statistics, including N, # missing, percent missing, mean, variance, standard deviation, standard error, P1, P5, P25, median, P75, P95, P99, minimum, maximum, confidence intervals, sum, and percent for 0/1 variables. It can also display categories of a variable in a manner similar to tabulate. fsum allows Stata labels and special user-defined labels. Display width is automatically adjusted for variable and label length. Column width is adjustable by format, and variable labels are available optionally.

Fred Wolfe





Fred Wolfe
National Data Bank for Rheumatic Diseases
Wichita, Kansas
Tel (316) 263-2125 Fax (316) 263-0761
fwolfe@arthritis-research.org


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