I was trying to debug my script and I am surprised that even this simple
script gives an error now:
---------
function tramolin(list xlist, scalar year, scalar startp)
genr ser = time
#! cmd /c "del /Q tmp_descript"
# list retlist = null
# scalar nobser = $nobs
end function
open data9-9
list xlist2 = nocars Y pop
list adjlist = tramolin(xlist, 1976, 1)
-------
The results I obtain are:
---------
gretl version 1.6.0
Current session: 2007/01/25 10:20
? function tramolin(list xlist, scalar year, scalar startp)
genr ser = time
#! cmd /c "del /Q tmp_descript"
# list retlist = null
# scalar nobser = $nobs
end function
? open data9-9
Read datafile C:\Archivos de programa\gretl\data\data9-9.gdt
periodicity: 4, maxobs: 60,
observations range: 1976:1-1990:4
Listing 7 variables:
0) const 1) nocars 2) pop 3) Y 4) price
5) primert 6) unemp
? list xlist = nocars Y pop
Added list 'xlist'
? list adjlist = tramolin(xlist, 1976, 1)
Data types not conformable for operation
Error executing script: halting
list adjlist = tramolin(xlist, 1976, 1)
-------
--
Ignacio Díaz-Emparanza
Dpto. de Economía Aplicada III (Econometría y Estadística)
UPV-EHU