________________________________________
Von: Klein, Christoph
Gesendet: Freitag, 19. Juni 2009 10:23
An: Allin Cottrell
Betreff: AW: [Gretl-users] autoreg and bessel
I was thinking a lot about this morning... You had a typo in your mail: Your version is
if (!starting(p) && r->t != VEC)
while mine was
if (!(starting(p) || r->t == VEC))
After calculating all possible inputs and outputs, I think both statements are equivalent.
:)
Christoph
________________________________________
Von: Allin Cottrell [cottrell(a)wfu.edu]
Gesendet: Donnerstag, 18. Juni 2009 17:04
An: Gretl development
Cc: Klein, Christoph
Betreff: Re: [Gretl-users] autoreg and bessel
On Thu, 18 Jun 2009, Klein, Christoph wrote:
another patch for support of autoreg formulas in the new bessel
function.
Thanks!
One comment: maybe I'm getting confused here, but I think the
first modification should be
old: if (!starting(p)) {
return aux_any_node(p);
---
new: if (!(starting(p) && r->t != VEC)) {
return aux_any_node(p);
while you had
new: if (!(starting(p) || r->t == VEC)) {
return aux_any_node(p);
My thinking is that you want to _prevent_ this function from
returning right away, if the "genr" is autoregressive and the
'r' node contains a series ('VEC') -- since you want it to be
evaluated one observation at a time.
Allin.