On Fri, 24 May 2013, Allin Cottrell wrote:
Jack, could you give a complete example that fails? That sort of
thing is
supposed to work, and the following works OK here:
<hansl>
open data9-7
list X = QNC PRIME UNEMP INCOME PRICE
var 2 X
matrix Selected_IRFS = {}
loop foreach i 2 4 5
Selected_IRFS ~= irf(3,i)
endloop
print Selected_IRFS
</hansl>
Right, sorry for providing a wrong example. Your script works ok as is,
but doesn't if you change the loop to
<hansl>
loop foreach i 2 4 5
Selected_IRFS = Selected_IRFS ~ irf(3,i)
endloop
</hansl>
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------