Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Rownames for tabulate from Stata macros?


From   daniel klein <klein.daniel.81@googlemail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Rownames for tabulate from Stata macros?
Date   Thu, 19 Jul 2012 17:37:33 +0200

Rebecca,

note that you want value labels, not variable labels. You may use
-labellist- (part of -labutil2- from SSC) or -labelsof- (Jann, SSC) to
obtain a list of value labels from a categorical variable.

Best
Daniel
--

Hi,

I am running a two-way (svy) tabulates such as:

svy: tabulate highested_level bmicat3

*where highested_level is a categorical variable with each category
having its own variable label (0 "no education" 1 "primary" 2
"secondary" 3 "higher").

However, I cannot figure out how to store the rownames in macros such
as can be done using tab-stat-example here:
*
*   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   |   Site index