[Gretl-devel] loop foreach in another loop

Ignacio Diaz-Emparanza ignacio.diaz-emparanza at ehu.es
Mon May 2 05:01:33 EDT 2011


El 29/04/11 22:21, Allin Cottrell escribió:
> On Fri, 29 Apr 2011, Ignacio Diaz-Emparanza wrote:
>
>> This is only to report that this construction does not work:
>>
>> <script>
>> loop j=5..9
>>       list xreg$j = varA$j varB$j varC$j
>>       list lreg$j = null
>>       loop foreach i xreg$j
>>           series l$i = log($i + 1)
>>           list lreg0$j += l$i
>>       end loop
>> end loop
>> </script>
>
> It should now work OK in CVS.

I confirm it works OK now.

>(Apart, that is, from the little bug
> in the script itself: "lreg$j" versus "lreg0$j".)

(Yes I did it in trying to simplify my script for sending it to the 
list, don't worry.)

Thanks a lot.



-- 
Ignacio Diaz-Emparanza
DEPARTAMENTO DE ECONOMÍA APLICADA III (ECONOMETRÍA Y ESTADÍSTICA)
UPV/EHU Avda. Lehendakari Aguirre, 83 | 48015 BILBAO
T.: +34 946013732 | F.: +34 946013754
www.ea3.ehu.es






More information about the Gretl-devel mailing list