I suppose you remember my message about building a function with one input
series and several output series, that I wanted to be named accordingly to
the input series (see
http://lists.wfu.edu/pipermail/gretl-users/2007-June/001722.html ).
I needed a "string" parameter in a function, but given that string parameters
are not allowed in a function I solved my problem using an external string
inside my function (I know this is not very smart but ... ). The problem now
is that this was working properly with gretl-1.6.6.pre1 (in Linux and
Windows), but it does not work with the current version of gretl-1.6.6.pre2
(Linux and Windows). You have below a simple script that can work in
gretl-1.6.6.pre1 but not in gretl-1.6.6.pre2.
There is also another command that worked in the previous version but it is
not working now:
matrix A = { NA, NA, NA, NA }
These two questions are breaking some of the scripts I am doing for a third
part, so I would be very grateful if they could work again.
-----------------Example script--------------
function sillyfunction(series sername)
#... some calculus, for example:
series @sname_f1=sername+sername(-1)+sername(-2)+sername(-3)
series @sname_f2=sername+sername(+1)
list outlist = @sname_f1 @sname_f2
return list outlist
end function
open data9-9
string sname="nocars"
list alist = sillyfunction(@sname)
--
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.et.bs.ehu.es