On Mon, 12 Dec 2011, Sven Schreiber wrote:
Hi,
this time I have a working example insofar as the following script
crashes gretl (recent cvs) for me: [...]
Some groundwork that maybe the chief may find useful:
1) The following slightly simplified script exposes the problem too:
<hansl>
open denmark
dataset addobs 4
# script operates on denmark with obs added until 1988:3
list lhs = IBO IDE# LRM LRY
series rhs = LRM
list allrhs = null
loop foreach i lhs
list rhs_$i = rhs(-1) # trivial example
if i=1
list allrhs = rhs_$i
else
list allrhs = allrhs ; rhs_$i
endif
endloop
system method=SUR
equations lhs allrhs
end system
fcast 1987:4 1988:3
</hansl>
2) The problem seems to be tied to the fact that sys_add_fcast_variance()
is called at line 3777 in lib/src/system.c at a point when the
matrix sys->A is NULL. This, IMHO, causes subsequent problems in
sys_get_fcast_se(), sys_companion_matrix() etcetera. I guess sys->A should
have been initialised by then, but I don't have enough familiarity with
the system code to attempt a fix.
HTH,
Riccardo (Jack) Lucchetti
Dipartimento di Economia
Università Politecnica delle Marche
r.lucchetti(a)univpm.it
http://www.econ.univpm.it/lucchetti