Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Rownames for tabulate from Stata macros?
From
daniel klein <[email protected]>
To
[email protected]
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/