The program below works perfectly in Ubuntu Linux (Spanish with local
decimals), but it makes gretl crash on Windows. (Windows 7 in Spanish
and gretl from current snapshot with local decimals).
The line which causes the problem seems to be "set force decpoint on".
It is surprising that this line is needed in Linux, but it makes the
crash in Windows and if you remove it, the program is succesful.
<hansl>
function void BCTplot(series Sciclo)
string sname = argname(Sciclo)
diff Sciclo
set force_decpoint on
string smY = sprintf("%g",max(abs(Sciclo))+0.2)
string smX = sprintf("%g",max(abs(d_Sciclo))+0.2)
list lplot = Sciclo d_Sciclo
BCT@sname <- plot lplot
options with-lines fit=none
literal set arrow from 0,-@smY to 0,@smY nohead lt 0
literal set xrange [-@smX:@smX]
literal set yrange [-@smY:@smY]
end plot
end function
open data3-6.gdt
genr time
# modelo 1
ols Ct 0 time
series uhats = ($uhat-mean($uhat))/sd($uhat)
BCTplot(uhats)
</hansl>
--
Ignacio Díaz-Emparanza
Departamento de Economía Aplicada III (Econometría y Estadística)
Universidad del País Vasco - Euskalherriko Unibertsitatea, UPV/EHU
Tfno: (+34) 94 601 3732
http://www.ehu.eus/ea3