Am 04.11.2010 13:52, schrieb artur tarassow:
Dear Sven and Allin,
Thanks for the reply. I am not sure whether I understood your comments
correctly.
...
The first two blocks run fine and I obtain the same results as in
gauss. The third block makes trouble. The corresponding Gauss code -
which works fine - for the third block is:
GAUSS-------------------------------
mpsi = zeros(h,k) ;
mpsi[1,.] = mtheta[1,.] ;
for i (1,l,1) ;
mpsi[i+1,.] = vphi[1:i]*mpsi[i:1,.] + mtheta[i+1,.] ;
endfor ;
for i (l+1,h-1,1) ;
mpsi[i+1,.] = vphi*mpsi[i:i-l+1,.] ;
endfor ;
----------------------------------------
There I dont obtain an error running the loop. I am really not sure
how to translate the GAUSSian code lines into proper gretl-language.
The mreverse command did not help really.
I'm not sure what mpsi[i:1,.] does exactly in Gauss for i>1, but in
gretl mpsi[i:1,] is only allowed for i<=1 (well, and i>=0 I guess).
So depending on what Gauss really does there, you want either mpsi[1:i,]
or mreverse(mpsi[1:i,]), AFAICS. So why doesn't mreverse help?
cheers,
sven