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-sorting display order after -encode-
From
Michael McCulloch <[email protected]>
To
[email protected]
Subject
st: re-sorting display order after -encode-
Date
Sun, 9 Mar 2014 20:01:47 -0700
Hello,
I have used -encode- to add value labels from string variable, which are a series of numerical ranges stored as text.
-codebook- shows the frequency data, and Label values, were correct.
Freq. Numeric Label
121 1 0-20
16 2 1,001+
36 3 101-500
81 4 21-100
8 5 501-1,000
However, I wish to display them using -tab- so that the rows are sorted on the value label.
The -encode- help file does not suggest this is possible. Is there a workaround?
What I want to achieve is -tab- showing this:
Label Freq
0-20 121
21-100 81
101-500 36
501-1,000 8
1,001+ 16
Best wishes,
Michael McCulloch
--
Pine Street Foundation, since 1989
124 Pine Street | San Anselmo | California | 94960-2674
P: (415) 407-1357 | F: (206) 338-2391 | http://www.PineStreetFoundation.org
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/