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]
st: RE: ordering of categories when cross-tabulating
From
Nick Cox <[email protected]>
To
"'[email protected]'" <[email protected]>
Subject
st: RE: ordering of categories when cross-tabulating
Date
Tue, 19 Oct 2010 13:06:16 +0100
Yes. Your variable is string. You must map that to a numeric variable using -encode- after defining value labels.
Nick
[email protected]
Vitorino, Maria Ana
I'm trying to produce a simple cross-tabulation table with gender on the rows and how important people think a program X is on the columns.
The categories for the columns are " Very important", "Somewhat important", "Not Important"
Is there a way I can guarantee that the order in which the column categories are displayed are (from left to right) " Very important", "Somewhat important", "Not Important".
Stata usually orders them alphabetically but I'm interested in a specific ordering.
*
* 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/