Am 15.02.2019 um 23:21 schrieb Allin Cottrell:
On Sat, 9 Feb 2019, Sven Schreiber wrote:
> It would be useful if the exact specification of the VAR could be
read
> off the $system accessor. Right now I only see the workaround to look
> at the first column of the matrix $system.X.
OK, I see what you mean. I've now added to the $system accessor for VARs
and VECMs a 3-vector named "detflags" (deterministics flags). The first
element is 1 if the specification contains a constant, 0 otherwise; the
second is 1 if the --trend option is given, 0 otherwise; and the third
is 1 if the --seasonals option is given, 0 otherwise.
Thanks, Allin. I have to check (when the my version /snapshot is
updated) what happens in the VECM case. I don't remember exactly where
the list of restricted terms shows up in $system. (Or in $model?)
There's one "hole" in this: if the user puts
"time" into the exogenous
vars list instead of using the --trend option that won't get picked up
(as a 1 for detflags[2]) at present.
I think that's OK, because indeed it is not the recommended way.
(Although I think we do something with "time" internally in SVAR or at
least check it. But that can be changed.)
series time = normal()
Maybe that should be banned, but it seems to me the fewer the reserved
words, the better.
Maybe "genr time" should be deprecated, given that "genr index" is
equivalent (or isn't it?). In general I thought the few special genr
expessions (unitdum, index, dum...) were supposed to be replaced with
accessors or other functions eventually.
exogenous term, to see if it's really a linear trend, though that
seems
a little like rewarding bad behaviour.
Yes, no need.
> - But instead of $system.compan we have $system.A.
I hadn't noticed that. We could rename $system.A as $system.compan, but
I guess at this point that would be a backward-incompatible change. I'm
open to suggestions.
Couldn't one simply be introduced as an alias for the other?
thanks,
sven