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: ordering of categories when cross-tabulating
From
Phil Clayton <[email protected]>
To
[email protected]
Subject
Re: st: ordering of categories when cross-tabulating
Date
Tue, 19 Oct 2010 23:08:28 +1100
Dear Ana,
I would suggest encoding the string variable as a numeric variable with value labels. That way you can order them however you like, and it's more compatible with various commands. See -help encode- and also [U] 23.2 Categorical string variables.
Regards,
Phil
On 19/10/2010, at 10:51 PM, Vitorino, Maria Ana wrote:
> Dear Statalist users,
>
> 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.
>
> Can this be done?
> Thanks!
> Ana
>
>
>
>
>
> *
> * 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/
*
* 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/