Am 08.09.2011 10:28, schrieb artur bala:
That's a very good point I did miss 8-) .
But I tried with the following script
matrix example2 = x
matrix example3 = zeros($nobs,1)
loop for i = 1..$nobs --quiet
example3[i,1] = example2[i,1]
endloop
and this still remains much slower than series operation (even though
faster then the previous mixing)
I can only guess, but maybe you could try to put a 'matrix' keyword also
at the beginning of the line inside the loop.
(As an aside, the officially correct loop form is without the 'for' in
this case.)
-sven