On Tue, 24 Jun 2014, Sven Schreiber wrote:
Am 24.06.2014 07:25, schrieb Deborah Sy:
> The following is the Hansl code shown:
> Index value 0 is out of bounds.
> *** error in function init_C, line 4
>> S = Ss [,1:k-1]
> called by function SVAR_estimate
> called by function GUI_SVAR
>
> May I know what went wrong here? Your help is greatly appreciated.
>
Hi,
in hansl the matrix indices start at 1, not at zero, so that's the
error. Apparently here k=1, so k-1=0.
How can k=1 happen? Looking at the code (SVAR 0.994 shipped with my
gretl version) of 'init_C' shows that 'k=cols(Ss)', so the matrix
'Ss'
must have zero columns.
Now Ss is created by 'Ss = imp2exp(Rd)'. In terms of programming it's
probably an indication that some further input checking should be added
to the package. In terms of your application, it could be that
something's wrong with your restrictions. (Since 'Rd' seems to be
related internally to the restrictions, I think -- I'm not the author.)
So I suggest to double-check your restrictions. You can also show them
to us.
Thanks for looking into this, Sven. I'll try to see what's wrong asap.
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------