<>
Substitute
******
sum (runiform()) , meanonly
******
in last post. W/o closing brace, the thing is illegal either way...
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von Martin Weiss
Gesendet: Dienstag, 25. August 2009 18:43
An: [email protected]
Betreff: st: AW: egen cut(runiform()) inconsistent across versions 10 and 11?
<>
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...
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von László Sándor
Gesendet: Dienstag, 25. August 2009 18:19
An: [email protected]
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
sorry.)
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,
Laszlo
*
* 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/
*
* 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/