Page 1 of 1

GPM without oil price - soe1bayes - error message

PostPosted: Tue Oct 13, 2009 8:32 am
by tjonsson
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 http://www.douglaslaxton.org/id4.html)

Regards,

Thomas

Re: GPM without oil price - soe1bayes - error message

PostPosted: Mon Oct 19, 2009 9:13 am
by SébastienVillemot
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:
Code: Select all
[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:
Code: Select all
[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,