Well, whatever the solution: To my mind it is not acceptable that a standard Stata analysis command produces a wrong result as a side-effect (as demonstrated in my examples) or that a genuine Stata command such as recode creates an error message (the programmer of the recode command at StataCorp obviously followed the bad advice to use a temporarily named scalar instead of using the pseudo-function scalar() which is the only safe thing to do as along as the problem I described persists). It would be interesting to know how many .ado-programs and genuine Stata commands are using temporarily named scalars and thus are running the risk to produce wrong results.
-
Login or Register
- Log in with
Comment