Hi Mikko
There was a bug relating to the fact that using tseries as input/output data from/to VAR and SVAR objects is now considered obsolete and will be removed from a future version of IRIS. The supported format is a database (struct).
I have fixed the bug anyway, so it should run ok now (check also out the new tutorial on Introduction to VAR Modeling in IRIS).
Also note two things:
* You should not use the option 'deviation=' true unless you remove the VAR-estimated mean from the data -- in which case you want both the input and output data to be interpreted as deviations from that mean. This is not the case in your case -- here, it is a coincidence because the VAR was actually estimated with an assumption of a zero mean.
* As in DSGE models, there is the N+1-th contribution of the initial condition and the deterministic constant terms. The proper add up should therefore, in general run as far as the N+1 page in the tseries object, where N is the number of shocks
c{:,1:3,1}+c{:,1:3,2}+c{:,1:3,3}+c{:,1:3,4}
Again, because the VAR was estimated with a zero constant assumption, this is not necessary in this particular case.
Note that you can use the command sum(c,3) (i.e. run summation in third dimension) to replace the manual sum above.
Let me know if everything's all right.
Best,
Jaromir