Hi there,
I am a bit puzzled by the grelt syntax. Why can I not use (s is a series)
print s[1]
but I can use
scalar z = s[1]
print z
??? It cost me some time to get it that actually accessing single elements works as it is written in hansl, simply because I did not understand the error msg from using the print command (I often use print or leading ? to check my understanding
of syntax…). Also, in hansl it is said that one may use
lagged_s =s[-1]
to produce a lagged version of the series. But to no avail (at least not, if there are some NA included). Wheras the (undocumented?)
lagged_s = s(-1) works (although grouped differently in the gui)
Best
Frederik