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

st: String or numeric variable hours?


From   Phil Bardsley <phil_bardsley@unc.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: String or numeric variable hours?
Date   Sun, 19 Sep 2004 12:17:45 -0400

Jon,

The fact that you were able to summarize the variable and get other than 0 obs indicates it is a numeric variable. As another reply suggested,
-ta hours, nolabel-
will tell you the actual values (as did your summarize command).

If you
-describe hours-
you'll see a value label name associated with the variable under the column heading "value label". You can then
-label list <name>-
to see the values that have the label associated with them, where <name> is the value label name (without the brackets). If you don't want the label you can
-label drop <name>-
to get rid of it.

. by secnum: sum hours

----------------------------------------------------------------------
-> secnum = 1 cathy

Variable | Obs Mean Std. Dev. Min Max
-------------+--------------------------------------------------------
hours | 1 89 . 89 89
--
Phil Bardsley
Carolina Population Center
phil_bardsley@unc.edu
919-966-2825

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