[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: egen cut(runiform()) inconsistent across versions 10 and 11?

From   "Martin Weiss" <>
To   <>
Subject   st: AW: egen cut(runiform()) inconsistent across versions 10 and 11?
Date   Tue, 25 Aug 2009 18:42:57 +0200


You can trace this back to the question whether 

sum (runiform() , meanonly

is legal or not (line 9 of _gcut.ado), which it seems to be in 10.1, but not 11. So the change might not be entered in the -whatsnew- under -egen, cut()- , but something else... 

Also note that both -version-s use the same 

C:\Program Files\Stata11\ado\base\_\_gcut.ado
*! version 2.0.8  01oct2004

so it is unlikely to be specific to _gcut...


-----Ursprüngliche Nachricht-----
Von: [] Im Auftrag von László Sándor
Gesendet: Dienstag, 25. August 2009 18:19
Betreff: st: egen cut(runiform()) inconsistent across versions 10 and 11?

Hi all,

I tried to discuss with you this little 'bug' (or feature) yesterday,
I just realized emails set up as the default in GMail don't make it to
the Statalist. Lesson learnt. (If this is a duplicate, I am very

I used the command -egen treat = cut(runiform()), group(2)- with
success on a copy of Stata 10 locally, with executables and ado files
updated to last week's builds. When I give the same command to Stata
11 on a UNIX cluster, it reports the error "invalid, variable name
expected". This is the case even if I add "version 10:" to the command
(-version 10: egen treat = cut(runiform()), group(2)-).

Why is this the case? I didn't find the change documented. And
shouldn't -version- solve this in any case?

(Of course, I can work around this, but still, what's wrong with
efficient and elegant code? And why only recently?)

Many thanks,

*   For searches and help try:

*   For searches and help try:

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