Thanks for your report, Rigoberto! Clear and precise reports like
yours, with an example script and an indication of the first release
when working code got broken, make debugging much easier than it would
otherwise be. I think the bug that you describe should be fixed in
today's gretl snapshots. It sounds like you have a known workaround
for the bug -- adding parentheses where they should not be needed --
so maybe your gretl usage is OK for now. Anyway, we'll make sure that
this fix doesn't get broken before the next gretl release, 2024b.
Allin Cottrell
On Thu, May 2, 2024 at 5:00 AM Rigoberto Perez Suarez
<rigo.perez.s@gmail.com> wrote:
>
> Hello,
> I have been a Gretl user for many years, and I would like to thank you for the important development you have promoted during this time.
> We have observed a typo since 2023b version when calculating rates using a list.
> More specifically, for the individual series we compute without problem:
> T=round(10000*(x/x(-1)-1))/100
>
> However, when we use a list:
>
> list l=y1 y2 y3
> list l_t=null
> loop foreach x l
>
> genr t$x=round(10000*(l.$x/l.$x(-1)-1))/100
>
> list l_t+= t$x
>
> endloop
>
> This code does not work properly. It is necessary to include a new parenthesis in the quotient (l.$x/l.$x(-1)) (which would not be necessary) to perform the operation correctly.
>
> Thank you and best regards
> Rigoberto Pérez
_______________________________________________
Gretl-users mailing list -- gretl-users@gretlml.univpm.it
To unsubscribe send an email to gretl-users-leave@gretlml.univpm.it
Website: https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/