Dear All,
is there any specific reason that I can write:
but I can't write:
in Stata (17, but probably in all versions)??
I am getting error 100: varlist required.
In other words, how does one tell from the syntax diagram for replace that the order of if and in is flexible (they can be switched) but order of oldvar=exp and in is fixed (they can't be switched)??
PS: both if and in are reserved words for the purpose of naming the variables, so whenever in (or if) is encountered in the command line, Stata should know to expect a corresponding expression to follow.
Thank you, Sergiy

is there any specific reason that I can write:
Code:
replace x=0 in L
Code:
replace in L x=0
I am getting error 100: varlist required.
In other words, how does one tell from the syntax diagram for replace that the order of if and in is flexible (they can be switched) but order of oldvar=exp and in is fixed (they can't be switched)??
PS: both if and in are reserved words for the purpose of naming the variables, so whenever in (or if) is encountered in the command line, Stata should know to expect a corresponding expression to follow.
Thank you, Sergiy
Comment