Hello all, I am getting strange behavior from scalars in Stata 18.5 that I cannot explain and I am hoping someone can explain.
I type something like:
In StataMP 17.0, which I run on my personal computer, I get the following:
That is, I get exactly what I expect. However, when I run the same code in StataNow/SE 18.5 (which I run on my work computer), I am getting:
So there are two weird things here. First, -display- doesn't show the same contents for scalar c that -scalar list- shows. Second, the operations creating scalars c and d do not seem to be working correctly.
Can anyone explain what might be going on? Thank you very much in advance!
I type something like:
Code:
scalar a = 1 scalar b = -3 scalar c = a - b scalar d = c + 1 di a di b di c di d scalar list
Code:
. di a 1 . di b -3 . di c 4 . di d 5 . scalar list d = 5 c = 4 b = -3 a = 1
Code:
. di a 1 . di b -3 . di c 0 . di d 0 . scalar list d = 1 c = 4 b = -3 a = 1
Can anyone explain what might be going on? Thank you very much in advance!
Comment