Hi, so my first question on this forum is this (tsset Date done, where Date stores quarterly periods):
Why
works as expected, but
does not?
(taking `H', changing scalar to local, using int(H) instead of H - doesn't work, I get "add() must specify a positive integer " or "you must specify either add() or last()" error messages).
I circumvented the problem by:
but I'm curious why add(H) does not work.
Thanks!
Why
Code:
tsappend, add(12)
Code:
scalar H=12 tsappend, add(H)
(taking `H', changing scalar to local, using int(H) instead of H - doesn't work, I get "add() must specify a positive integer " or "you must specify either add() or last()" error messages).
I circumvented the problem by:
Code:
scalar H=12 tsappend, last(Date[_N]+H) tsfmt(int)
Thanks!
Comment