On Wed, May 22, 2024 at 7:17 AM Sven Schreiber
<sven.schreiber(a)fu-berlin.de> wrote:
 Am 02.05.2024 um 11:57 schrieb Sven Schreiber:
 >
 > Well, I thought so, too. However, even inside a function there seems
 > to be a problem. Test case:
 >
 > <hansl>
 >
 > open denmark
 > list L = LRM LRY
 >
 > function void checko(list L, series LRM)
 >
 >     list Lt = deflist()
 >
 >     loop foreach x L
 >         series t$x = round(10000*(L.$x/L.$x(-1)-1))/100
 >         Lt += t$x
 >     endloop
 >
 >     # compare
 >     series myt_LRM = round(10000*(LRM/LRM(-1)-1))/100
 >
 >     eval sum(abs(myt_LRM - Lt[1])) # should be zero
 > end function
 >
 > checko(L, LRM)
 >
 > </hansl>
 >
 > At first sight this looks pretty bad, to be honest.
 >
 OK, so with the latest and greatest gretl 2024b this works as expected
 again -- did anybody add this little script to the test collection
 somewhere? (Or an equivalent one.) 
Yes. See test_scripts/fundamentals/genr_with_listvar_lag.inp under unittests.
Allin