Problem when using a list
by Rigoberto Perez Suarez
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