Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

Re: st: Rownames for tabulate from Stata macros?

From   daniel klein <>
Subject   Re: st: Rownames for tabulate from Stata macros?
Date   Thu, 19 Jul 2012 17:37:33 +0200


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.



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:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index