Dear All,
I've just found that the following code does not produce an error, while I anticipated it should:
I expected to see here:
Similar to what we are getting after
Observed in Stata 17 (if this matters, but probably all versions of Stata).
Is there any way to restrict this behavior to result in error for when attempts are made to read from outside of the data range?
Thank you, Sergiy
I've just found that the following code does not produce an error, while I anticipated it should:
Code:
clear generate x="abc" display x[1] display x[1000] display x[-1000]
Code:
observation numbers out of range
r(198);
Code:
replace x=1 in 1000
Is there any way to restrict this behavior to result in error for when attempts are made to read from outside of the data range?
Thank you, Sergiy
Comment