Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: encode


From   Daniel Egan <[email protected]>
To   [email protected]
Subject   Re: st: encode
Date   Thu, 2 Dec 2004 13:08:04 -0500

use -sencode-
ssc install sencode

for example:

sysuse auto
encode make, gen(amaker)
sencode maker, gen(zmaker) gsort(- make)
table maker, c(m amaker m zmaker)




> > I can work around this question manually, but encode works in ascending
> > alphabetical order...is there a way to encode in descending
> > alphabetical order? This is because I want descending order using the
> > by_option of my graph command.
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index