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

Re: st: Re: aorder: system limit exceeded


From   Richard Williams <[email protected]>
To   [email protected]
Subject   Re: st: Re: aorder: system limit exceeded
Date   Thu, 30 Jun 2005 22:55:29 -0500

At 08:14 PM 6/30/2005 -0700, Friedrich Huebler wrote:
Yes, -aorder- works when the offending variables are renamed but I
would like to keep the original names.

Friedrich
Sounds like some weird esoteric bug in -aorder-. Until it gets fixed, I found that the following works. What I do is first create vars with the problematic names (a step you can skip since you already have those vars!). Then, add _1 to every name. Use -aorder-. Then, drop the _1 from every name.

. sysuse auto, clear
(1978 Automobile Data)

. ren make hi9dc

. ren mpg hi9dd

. renvars, postfix(_1)

. aorder

. renvars, postdrop(2)

There are a couple of -renvars-, I am using the one by Cox and Weesie from http://www.stata.com/stb/stb60.

I'm not sure why this works since I'm not sure what causes the problem in the first place, but apparently adding _1 to each var name makes problematic names non-problematic while not changing the sort order.

Incidentally, I first tried a postfix of _x - and it didn't work!!! Nor does _a or _z, but _2 does. Something quite peculiar is going on here, and it will take some scrutiny of -aorder- to figure out what it is.

-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
FAX: (574)288-4373
HOME: (574)289-5227
EMAIL: [email protected]
WWW (personal): http://www.nd.edu/~rwilliam
WWW (department): http://www.nd.edu/~soc

*
* 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