Yea it works.. much more simple!!! 

Thanks!


2013/6/17 Gabriela Nodari <gabriela.nodari@gmail.com>
Ehm... Probably I have used extra (and non necessary) commands!!!
but I got the result :)

here is the code... 

i=1
scalar D= abs(IP[i,])
loop 60
    if D < abs(IP[i+1,])
      D = abs(IP[i+1,])
    else
      D=D
endif
i=i+1
endloop

so, you are saying that i can simply put 

D = max(abs(IP)) ??

im my data IP is saved as a matrix (60x1)...


2013/6/17 Sven Schreiber <svetosch@gmx.net>
Am 17.06.2013 12:03, schrieb Gabriela Nodari:
> the supremum of a time series: Oh right, I got it with a simple loop...
>
>

huh?? What about max()? Granted, it's "only" the maximum, but computers
never find suprema...

-s

_______________________________________________
Gretl-users mailing list
Gretl-users@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users