GPM without oil price - soe1bayes - error message

Hi,

I’m estimating the GPM model, i.e. with three economic areas, bank lending tightness variable but without oil price, downloaded from Douglas Laxtons website. I receive this error message

*??? Input argument “exo_nbr” is undefined.

Error in ==> kalman_transition_matrix at 40
B = zeros(nr,exo_nbr);

Error in ==> forcst at 33
[A,B] =
kalman_transition_matrix(dr,nstatic+(1:npred),1:nc,dr.transition_auxiliary_variables);

Error in ==> forecast at 85
[yf,int_width,int_width2,int_band30,int_band70] =
forcst(oo_.dr,y0,options_.periods,var_list);

Error in ==> dynare_estimation_1 at 1577
forecast(var_list_,‘smoother’);

Error in ==> dynare_estimation at 62
dynare_estimation_1(var_list,varargin{:});

Error in ==> soe1bayes at 1620
dynare_estimation(var_list_);

Error in ==> dynare at 125
evalin(‘base’,fname) ;*

when running the following estimation command

estimation(datafile=data3ctry,nobs=57,mode_compute=0,mode_file=soe1bayes_mode, mh_replic=0,mh_jscale=0.35,mh_nblocks=1, filtered_vars,filter_step_ahead=[1:12],forecast=20, tex, conf_sig=0.95)

**Any idea what it refers to? **

I’m using Dynare 4.0.4.

I attach code, steady state file and data (it can also be found on douglaslaxton.org/id4.html)

Regards,

Thomas
soe1bayes_steadystate.m (4.3 KB)
soe1bayes.mod (25.6 KB)
data3ctry.m (11.5 KB)

Hi,

It looks like your Dynare installation is deficient in some way.

The error message is triggered by line 33 of file “matlab/forcst.m”, which on your system is:

[A,B] = kalman_transition_matrix(dr,nstatic+(1:npred),1:nc,dr.transition_auxiliary_variables);

But the same line in Dynare 4.0.4 reads as follows:

[A,B] = kalman_transition_matrix(dr,nstatic+(1:npred),1:nc,dr.transition_auxiliary_variables,M_.exo_nbr);

(note the last argument, which is missing on your installation)

Maybe you have two concurrent Dynare versions installed on your system, and your MATLAB path is wrong. Try to clean-up your MATLAB path and/or reinstall Dynare.

Best,