Page 1 of 1

plotting irf

PostPosted: Sun Jul 17, 2011 4:21 pm
by masopa87
Hi all.
I have a problem in handling the drawing of impulse response functions when I use more than 3 variables in a MS-SBVAR model. Indeed once the computations are finished and it comes to plotting the impulse responses, I get the following error after the first two graphs:

Constructing percentiles for filtered impulse responses - 10000 draws of regimes per posterior value
g shock from g
t shock from g
y shock from g
p shock from g
int shock from g
??? Index exceeds matrix dimensions.

Error in ==> plot_ms_irf at 110
shock(:,i,n) = irf(n,:,((i-1)+(s-1)*nvars)+1);

Error in ==> ms_irf at 50
plot_ms_irf(M_,options_,irf,options_.varobs,'Ergodic Impulse
Responses',varlist);

Error in ==> tesi at 75
[options_, oo_] = ms_irf(var_list_,M_, options_, oo_);

Error in ==> dynare at 132
evalin('base',fname) ;

How could I fix this?
Thanks.

Re: plotting irf

PostPosted: Tue Jul 19, 2011 10:03 am
by HoutanBastani
Please post your mod file.

Best,
Houtan

Re: plotting irf

PostPosted: Wed Jul 20, 2011 5:55 pm
by masopa87
Here there is the mod file. Thanks.

Re: plotting irf

PostPosted: Mon Sep 05, 2011 11:52 am
by SébastienVillemot
Actually we also need the datafile.

Thanks,